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

Session variables problem

Status
Not open for further replies.

ufobaby

MIS
Sep 25, 2001
238
US
the following is the code

Page 1:
Session("SCName")= Request("txtusrname")
'// This writes to the database table
Call WriteToLogFile(Session("SCName"),"INFO",Now,"LOGIN SUCCESSFUL")
Response.Redirect "ican.htm"

Page 2:
Reponse.Write(Session("SCNam"))

this does not show the value. what could be wrong, all browser settings are correct.


__________
[cheers]
Niraj...
"The unexpected success is not just an opportunity for innovation. It demands innovation."
[noevil]
 
Reponse.Write(Session("SCNam")) this does not work because of TYPO's

it shud be Response and not Reponse

and it shud be SCName and not SCNam

-VJ
 
thanks but that's a typo on the forum on the page that is perfectly ok i even tried the following code

dim i
dim j
j=Session.Contents.Count
Response.Write("Session variables: " & j)
For i=1 to j
Response.Write(Session.Contents(i))
Next

it shows 0 variables. pls note the next page is a framed one and am trying to display the variable on the top frame.

the session id gets displayed perfectly

__________
[cheers]
Niraj...
"The unexpected success is not just an opportunity for innovation. It demands innovation."
[noevil]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top