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

Using Session to handle heading

Status
Not open for further replies.

lcky

Programmer
Sep 29, 2005
30
0
0
GB
Hi

I would like to set session to hold value and then use this value to display heading.

I have setHeading and setGraphic, session variables. setHeading hold string value ie True and False and setGraphic; name of graphic.

When user first open Home page, It would set setHeading to True and name for the graphic. As shown below;

<%
Dim setSessionHeader
Dim headGif

If ((Session("setSessionHeader") = "False")
OR (isEmpty(Session("setSessionHeader")))
OR (IsNull(Session("setSessionHeader")))) Then

Session("setSessionHeader") = "False"

End If

If ( Session("setSessionHeader") = "False") Then
If (Right(Request.ServerVariables("HTTP_REFERER"),1) = "F" ) Then
Session("headGif")= "FadHeading"
Else
Session("headGif")= "InfHeading"
End If
Session("setSessionHeader") = "True"
End If
%>

But this dosn't seem to be working

I have also tried using Session.Contect, instead of just Session.

Please could you this code and see where I am going wrong.


many thank
 
Are any of your session variables working? I mean... is session state enabled in IIS?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top