Im in the process of creating a Database driven online newspaper with an archive system so that a user can go back and view past issues.
I reached a stage where i was happy with the results:
1)User enters home page
2)I use an IF statement to see if a session variable named 'issue' isdefined.
3)This #session.issue# variable controls which issue is being searched for in the DB
4)IF #session.issue# not defined, i set is to be the latest issue (in this case #session.issue# = 4)
5)Wherever the user now browses within the site, all displayed content corresponds to issue 4
6)Now going to the archive, the user could choose to view the first issue, issue 1; Now #session.issue#= 1.
This setup worked fine in a single browser window and i didnt realise i had a problem until i came to try to view two different issues in two separate browser windows (on 1 client).
The #session.issue# variables conflicted with each other since they are constant within the whole application, and this lead to a crossover between issues, with the #session.issue# variable being defined by the last browser to set it!
Does anyone know if i could assign 2 different values to a session variable of the same name within an application so that a user could view 2 issues simultaneously in 2 browser windows. Or indeed x values!
Im very stuck.
thanks in advance!
I reached a stage where i was happy with the results:
1)User enters home page
2)I use an IF statement to see if a session variable named 'issue' isdefined.
3)This #session.issue# variable controls which issue is being searched for in the DB
4)IF #session.issue# not defined, i set is to be the latest issue (in this case #session.issue# = 4)
5)Wherever the user now browses within the site, all displayed content corresponds to issue 4
6)Now going to the archive, the user could choose to view the first issue, issue 1; Now #session.issue#= 1.
This setup worked fine in a single browser window and i didnt realise i had a problem until i came to try to view two different issues in two separate browser windows (on 1 client).
The #session.issue# variables conflicted with each other since they are constant within the whole application, and this lead to a crossover between issues, with the #session.issue# variable being defined by the last browser to set it!
Does anyone know if i could assign 2 different values to a session variable of the same name within an application so that a user could view 2 issues simultaneously in 2 browser windows. Or indeed x values!
Im very stuck.
thanks in advance!