Welcome to WebmasterWorld Guest from 54.205.170.21

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

php sessions and disabled cookies

Why won't this work?

   
5:32 pm on Jun 7, 2002 (gmt 0)

WebmasterWorld Senior Member nick_w is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Hi everyone.

I have php compiled with --enable-trans-sid but when I disable cookies the session is not being propagated through the url as I thought it would.

Any thoughts?

Nick

6:37 pm on Jun 7, 2002 (gmt 0)

10+ Year Member



Once you've called session_start() you will have the session ID available in a constant called SID. You need to include this in any URLs where you wish to propogate the session, like this:

<a href="nextpage.php?<?=SID?>">Next page</a>

7:11 pm on Jun 7, 2002 (gmt 0)

WebmasterWorld Senior Member nick_w is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Thanks for the reply but as I said I have --enable-trans-sid compiled into php so that takes care of server-side propagation automatically.

Actually, I've sorted it, I'm afraid it was a case of not seeing the wood for the trees:

The session is passed via url if cookies are disabled right? I was redirecting not linking so there was no way to pass the SID.

Doh!

Nick

 

Featured Threads

Hot Threads This Week

Hot Threads This Month