Page 1 of 1

SESSION id is ... late.

Posted: Thu Apr 15, 2004 1:09 am
by Steveo31
I thought, that when a session in any way was set, like username, so on.. all the url's henceforth are appended with the session ID. I think I am wrong, as my site doesn't do this.

I know the session is started, I just store one variable in the session (username) and I can echo it anywhere in the site. BUT, there is no session ID. When I close it and come back a little later, the session id is appended, but just for that one link. Once its clicked on, it goes away.

What gives?

Posted: Thu Apr 15, 2004 3:07 am
by markl999
Check out your php.ini, look for
session.use_cookies = 1
session.use_trans_sid = 0

The comments surrounding those lines might clear it up for you :o

Posted: Thu Apr 15, 2004 3:53 am
by Steveo31
Hm, nope. Not really ;)

Well, I went back, and that sessionid is on all links.. not just one. I'll try turning off the session.use_cookies. Will this affect cookies set with setcookie() ?

Posted: Thu Apr 15, 2004 3:54 am
by vigge89
you want to have the session-id in the addressbar? 8O