Re: Re: multiple sessions for the same user

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Apr 4, 2014 at 3:22 PM, Larry Martell
<larry@xxxxxxxxxxxxxxxxxxxxx> wrote:
> On Fri, Apr 4, 2014 at 10:54 AM, Tony Marston <TonyMarston@xxxxxxxxxxx> wrote:
>> "Larry Martell"  wrote in message
>> news:CACwCsY4xBbdzKE0imoqSTPMpOR-LuELmO1LkZgv4yZ31RqnpOg@xxxxxxxxxxxxxx...
>>
>>>
>>> I have a php app that uses a session to share data across requests
>>> (using session_start())
>>>
>>> I have a situation where a user wants to open 2 invocations of the app
>>> in 2 browser tabs and look at different things, but because of the
>>> session, both tabs have the same data. Is there a way to have a
>>> separate session for each tab they open?
>>
>>
>> Yes, this is possible because I have implemented this feature in my
>> framework. It allows any user to have any number of independent sessions in
>> any browser. My solution is documented in
>> www dot tonymarston.net/php-mysql/client-clones.html
>
> I'm trying to implement your solution, and what is happening is that
> each frame in each page is getting it's own session (instead of a new
> session only getting created when I click on the "new session" link).
>
> I'm not sure what to use in place of 'whatever' in your example:
>
> <input type="hidden" name="session_name" value="whatever" />
>
> Right now I am passing in 'whatever' so perhaps that is my issue.

I got this working. I figured out I have to pass in the session_name
in place of "whatever"

Thanks very much Tony for putting up that web page and pointing me at it.

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





[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux