Thursday, March 22, 2012

Session Variables

I have a question about session variables. I'm setting a session variable in a file in an applications directory and it stores the variable fine and I can access it. Problem is I have a sub directory called administration that I need to access this session variable when I try to there is no value. Is there a specific syntax for setting session variables that they are accessible in sub-directories or should I be doing something different. Here is my syntax.


Session("UserID") = userVal
Is the sub-directory within the same application? When you are accessing the session variable are you getting an empty string or is the app throwing a null exception?
Yes it is within the same application. It's an application within an application but the subdirectory lies within the other.

Marc

0 comments:

Post a Comment