Re: sessions causing refreshing not to work [message #178319 is a reply to message #178318] |
Sun, 03 June 2012 13:59 |
Michael Joel
Messages: 42 Registered: October 2011
Karma:
|
Member |
|
|
Fred wrote:
> Le 03/06/2012 05:17, Michael Joel a écrit :
>
>> I have page data being sent through a php script that uses sessions to
>> pass along variables. These vars are used to load data.
>>
>> If a user opens a page, everything works fine.
>> If they open another in a new window it works fine.
>
>
> same browser? ==>> same session
>
>
>> If they tab back over to the original browser window and hit refresh it
>> switches to the last page they opened in the other window.
>>
>> This is because sessions is keeping that last var data in memory so the
>> old page when refreshed reads the new var data and opens new data
>> instead of refreshing the old.
>
>
>
> I think the problem is every loaded pages change the state of
> the server so the 2 opened windows are linked together.
>
>
>>
>> How would I go about fixing this so a page doesn't lose it's var data on
>> refresh?
>>
>> Mike
>
>
>
> since pages sharing same datas. It is not possible like this.
>
> But is it really a problem?
>
>
> Fred
It is if the user wants to open to documents at once and tries to
refresh on.
I guess the easiest is to go with passing data by the url, not clean
looking but the information is the important thing.
Mike
|
|
|