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

problem sharing session state between asp and aspx

Status
Not open for further replies.

Mdiaz

Programmer
Jul 8, 2002
32
US
I understand that you can mix traditional asp with aspx pages. I am trying to do that with a login page (now in aspx)that sets session variables whicj will allow users to enter restricted pages. Those pages are currently *.asp pages.

For some reason the *.asp pages do not seem to get the seesion variables that I created in the login.aspx page.

I made sure that the seesion variable actually had a value by displaying them in the login.aspx page.

Below are some snippets of related code.

####### First line of code on restricted asp page #####
Code:
<%If Session(&quot;AllowCreep&quot;)=&quot;&quot; Then
	Response.redirect &quot;/EStation/pages/login.asp&quot;
End If%>

########### Code from login.aspx page #########

Code:
 session(&quot;AllowCreep&quot;)=userDS.tables(0).rows(0)(&quot;AllowCreep&quot;)

If I do a;
Code:
user.text = Session(&quot;AllowCreep&quot;)
on the login.aspx page, it displays the value, so I know its assigning a value to the session variable.

Any clues?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top