Re: Session Variable problem-Please Help
From: Elango Meenakshisundaram (elu22_at_hotmail.com)
Date: 05/06/03
- Previous message: Hossein Taheri: "Re: Validate User Credentials against active directory"
- In reply to: Badrinath Mohan: "Session Variable problem-Please Help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 6 May 2003 15:38:45 -0400
The session variable is carried over only in the same base URL. When the
base url changes (from mysite to mypc), it won't carry over. It's like
trying to carry session values between two different sites. As you can see,
it did work on the same site.
If you need to carry it over, and if you are using ASP.NET, you could either
use HTTPContext or post the variables into the query string when you call
into another server and set a new session variable there.
Hope this helps.
Elango.
"Badrinath Mohan" <bmohan@uncc.edu> wrote in message
news:O9tLeR#EDHA.2068@TK2MSFTNGP10.phx.gbl...
> Hello Guys
> I have a problem using the session variables..please look at the code
> below...
>
> http://mysite.edu/test1.asp (Site 1)
> Session("DummyVariable")="Mynamehere"
>
> http://mypc.edu/test2.asp (Another Site ,site 2)
>
> Response.Write("the dummy variable is " & Session("DummyVariable"))
>
> Its NOT working ....the Session("DummyVariable") returns null.. and not
gets
> printed...
>
> But if it is in the same PC(site) i am able to get it...
> Why is it so...??
>
> Please help me..
> Regards
> Badri
>
>
>
- Previous message: Hossein Taheri: "Re: Validate User Credentials against active directory"
- In reply to: Badrinath Mohan: "Session Variable problem-Please Help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]