By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,784 Members | 3,536 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,784 IT Pros & Developers. It's quick & easy.

cannot access session varible

P: n/a
Hello all

I have a strange problem at the moment .I use iis5 to do my asp pages with
vb scripts
when i set
session("myvar")="anyvalue" in my first page i cannot read the session
variable in my second page

If i try to get
xx=Session("myvar") it returns noting

Is this something to do with my configuration
Please help

/Prashantha
Jul 19 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
You have tried writing the value?
<%=session("myvar")%>

The second page in in the same web? its an asp page? session state is
enabled? you accept cookies? you set the session on an asp page?
"prash" <pr******************@ifs.lk> wrote in message
news:Ov**************@TK2MSFTNGP09.phx.gbl...
Hello all

I have a strange problem at the moment .I use iis5 to do my asp pages with
vb scripts
when i set
session("myvar")="anyvalue" in my first page i cannot read the session
variable in my second page

If i try to get
xx=Session("myvar") it returns noting

Is this something to do with my configuration
Please help

/Prashantha

Jul 19 '05 #2

P: n/a
You have tried writing the value? <%=session("myvar")%> ? yes i have
The second page in in the same web? yes
its an asp page? yes it is
session state is enabled? how can i enable the session
you accept cookies? i have not set anything on my page
you set the session on an asp page? yes my first page i set <%
session("myvar")="anyvalue" % >
Then in my second page i use <%=session("myvar")%> . nothing returns .syntax
is quite ok
any idea

"dave" <no**@invalid.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
You have tried writing the value?
<%=session("myvar")%>

The second page in in the same web? its an asp page? session state is
enabled? you accept cookies? you set the session on an asp page?
"prash" <pr******************@ifs.lk> wrote in message
news:Ov**************@TK2MSFTNGP09.phx.gbl...
Hello all

I have a strange problem at the moment .I use iis5 to do my asp pages with vb scripts
when i set
session("myvar")="anyvalue" in my first page i cannot read the session
variable in my second page

If i try to get
xx=Session("myvar") it returns noting

Is this something to do with my configuration
Please help

/Prashantha


Jul 19 '05 #3

P: n/a
http://www.aspfaq.com/2157

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"prash" <pr******************@ifs.lk> wrote in message
news:Ov**************@TK2MSFTNGP09.phx.gbl...
Hello all

I have a strange problem at the moment .I use iis5 to do my asp pages with
vb scripts
when i set
session("myvar")="anyvalue" in my first page i cannot read the session
variable in my second page

If i try to get
xx=Session("myvar") it returns noting

Is this something to do with my configuration
Please help

/Prashantha

Jul 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.