Last post Mar 10, 2011 09:55 AM by bbcompent1
Mar 10, 2011 09:34 AM|Fonzie|LINK
I use session vars to hold values between pages and I passed a session var to a string var. Should the string var hold its value forever?
Mar 10, 2011 09:51 AM|bbcompent1|LINK
Mar 10, 2011 09:54 AM|Pankaj.Sharma|LINK
As the string type behaviour is of value type. So when you pass the session variable value to string variable it will copy the content to string variable that means it will create a new memory location and copy the content over there. So If session expires
then the value in session wont be available but the value in string variable will be available for ever.
Hope this answers your query.
Mar 10, 2011 09:55 AM|bbcompent1|LINK
Well very cool, I learned something new today :)