"Bob Bruce - Programmer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> This is my first posting to this group, so I am not familiar
> with any special etiquette for it, please bear with me. . .
>
> I maintain the PHP code for the website for the murals of Winnipeg and
> have found a situation where I have a session open with the state of
> the user's search results saved in the session and link to a location
> with the following link:
>
> <A target="blank"
>
href="http://www.themuralsofwinnipeg.com/Mpages/index.php?action=gotomural&m
> uralid=179">
>
> so this opens a new browser window, but it is inheriting the session
values
> from the browser window that called it and is causing problems in the new
> window. When I open a new browser window shouldn't it start a whole new
> session and not get anything from the previous browser.

You can solve this problem by not working with cookies and instead
forwarding the sessionID with the URL:

<A target="blank"
href="http://www.themuralsofwinnipeg.com/Mpages/index.php?<?= SID;
?>&action=gotomural&muralid=179">

So if you open a new page WITHOUT forwarding the sessionID a new session
will be started.

See the part named "Passing the Session ID" on the following manual page to
see how to do it:
http://de2.php.net/session

Regards,

Torsten Roehr

>
> Thanks in advance for your help,
>
> Bob Bruce,
> Winnipeg, Manitoba
> Canada

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to