Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Im in the process of creating a Dat

Status
Not open for further replies.

aleci

Programmer
May 22, 2001
40
GB
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 read this in Mastering CF 4.5 versions 4.x and 5.0 of IE will cause session variables to work unexpectedly or will cause session variable to cease to exist. They suggest client variables reliant that your client has cookies on. Microsoft claims this was fixed in 5.x versions
DeZiner
Never be afraid to try something new.
Remember that amateurs built the Ark.
Professionals built the Titanic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top