Forum Moderators: coopster

Message Too Old, No Replies

Problems with session IDs

ID is not always added to URl

         

globay

9:00 am on Jun 3, 2003 (gmt 0)

10+ Year Member



In a new project, I added a user log-in, using Sessions. For those, who don't accept session cookies, the server (apache) adds 'automatically' the PHPSESSID to the links. Somehow, it sometimes 'forgets' to add the Session ID and users have to go through the log-in procedure again.

How can I solve the problem?

Thanks,
--
globay

Alternative Future

9:27 am on Jun 3, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,

Not a PHP programmer, but had a few minutes on my hand to see if I could help on this one :) Came across several forums with a google search that offer answers to your question (I think they are related) seems to be a common problem if so.
Anyway...

session.use_trans_sid = 1;

By activating the use_trans_sid all session_ids are appended to the links.

Again I would do a little more research on the use of this as it has an impact on speed and performance.

HTH,

-gs

globay

10:02 am on Jun 3, 2003 (gmt 0)

10+ Year Member



Thanks a lot!, yes that has done the job.