| re: PHP Session Problem
Hi,
Yep I am doing that but unless I do
<a href="page2.php<?php echo SID ?>">page2</a>
it wont pass the SID around. I have tried adding
ini_set('session.use_trans_sid', true); which dosnt seem to have made
any difference. I am wondering if it is my installation gone corrupt!!!
Cheers,
Nick
Moxley Stratton mumbled on about the following on 22/05/2004 18:20:[color=blue]
> Nick Young wrote:
>[color=green][color=darkred]
>> > None seem to have any affect. The scripts I use for testing are[/color]
>> below. When run with cookies disabled the page2 comes up with the
>> error "Undefined index: logged .........". Am I being stupid here?
>> Can anyone point out what I am doing wrong?[/color]
>
>
> You have to hyperlink to page2 from page1 for the trans_sid to work. Are
> you doing that?
>
> page1.php
> <?php
> ini_set('session.use_trans_sid', true);
> session_start();
> <snip>
> ?>
> <a href="page2.php">page2</a>
>
> When you run page1.php, look at the source code from your browser to see
> the URL of the link. Has it been changed to something like this:
> <a href="page2.php?SID=a10921830a9019283">page2</a>
>
> Starting with a fresh browser, you should always see this the first time
> page1.php is loaded, regardless whether cookies are enabled.
>
> ---
> Moxley
> moxleystratton.com[/color] |