hon123456 wrote:
Dear all,
I have a session variable session("loginid) which can be
passed from A.asp to B.asp. Then In B.asp I have a hyperlink to C.asp
e.g. < A href..C.asp>. The session variable cannot be
passed to C.asp. The session variable is empty. What can I do to debug
this problem?
1. Session variables are not "passed" from one page to another. One page
sets a session variable value, which is stored in the server's memory.
When the next page is requested, it can read the value of the session
variable if it has been previously set.
2. Are all three pages in the same application/website? If not, you will
need to find another way to make the value available across
applications/websites: probably a database of some sort. If they are in
the same application, you need to show us how to reproduce the symptom
so we don't have to keep guessing.
This might help:
http://www.aspfaq.com/show.asp?id=2157
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.