Welcome to WebmasterWorld Guest from 54.163.158.163

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)

Senior Member

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

joined:Feb 4, 2002
posts:5044
votes: 0


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 June 7, 2002 (gmt 0)

Preferred Member

10+ Year Member

joined:June 7, 2002
posts:475
votes: 0


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 June 7, 2002 (gmt 0)

Senior Member

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

joined:Feb 4, 2002
posts:5044
votes: 0


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

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members