After querying a database, I am trying to register the the mysql_instert_id() variable from the database into the session.
However when registering the session, the session only contains the following:
!user_id|
The session should say:
user_id|i:1;
Or something like that. The user_id IS being assigned because I can echo it's value to the screen just fine.
Here is my code:
$result = mysql_query($query);
$user_id = mysql_insert_id();
session_start();
session_register('user_id');
Any hints?
Ed