Page 1 of 1

session Id

Posted: Wed Sep 03, 2008 8:26 am
by pagegen
Hey guys i am using

Code: Select all

session_start();
$Busername = session_id();
 
to make a session and then add it to a $Busername..

that works and when i do ECHO $Busername;

that works to but it wont let me add the session id to database

i get this error
Unknown column 's8judj32l4nnuv2hdogq9iddk4' in 'field list'

i want it to be varchar compatible so i can add it to database

can u guys plz help?

is is session ID always different?

Re: session Id

Posted: Wed Sep 03, 2008 8:45 am
by Oren
Different users will have different session IDs, of course. Even the same user will have different session IDs from time to time.
Show us your code please.

Re: session Id

Posted: Wed Sep 03, 2008 8:47 am
by pagegen
Oren wrote:Different users will have different session IDs, of course. Even the same user will have different session IDs from time to time.
Show us your code please.
i have added my code in the 1st post..its been edited a bit to

thanks

the same users session id wont cng unless they close the site right?

Re: session Id

Posted: Wed Sep 03, 2008 10:06 am
by pagegen
hey can someone plz help

Re: session Id

Posted: Wed Sep 03, 2008 1:03 pm
by starram
You have problem in the insert query you wrote.
please paste that here.