This kinda puzzle me. I was trying to pass a piece of information from
page to page, so i use session. It works fine until i created
directories to organize my pages.
Say, from "http://Appz/main.aspx" navigate to "http://Appz/page2.aspx",
it works.
But, if from "http://Appz/main.aspx" navigate to
"http://Appz/dir1/page2.aspx", at page2.aspx, it no longer able to get
the session set by main.aspx.
I use Session.Add("userid", 1) to set the session and use
Session.Contents.Item("userid") to retrieve the value. How should i
maintain this kind of session?
Thanks.