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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Session Question

Status
Not open for further replies.

agent0047

Programmer
Jan 11, 2008
15
Ok let’s say I have two pages one is: Page one and the other is Page Two. Now page one have a session called session("mem_name") that it creates on login and page two is linked to page one and is used to update member info and it creates a session of the same name as the session name on page one when it processes would the first session be overwritten and would this if it should happen cause problems with data integrity. Or does it even matter because if I am correct each session has its on session id created by the server so the name of the session would be of no important unless you where trying to create the two sessions with the same name at the same time on the same page?

I am asking because of knowledge because we have pages in the creation of our new system that just might have this happen in some remote cases.

Thanks I hope this is not silly to you guys
 
A specific session variable belongs to a session and not to a page. If the second page is accessed in the same session as the first then any assignment to the session variable will overwrite the previous value

___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
Steam Engine Prints
 
Thanks john that is what I was thinking I just wanted to be sure. Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top