473,396 Members | 2,113 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

cannot access session varible

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
3 1616
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Chewy509 | last post by:
Hi All, I'm having a small problem with sessions, or in particular some of the data is not being saved within the session data. To be exact, 1 variable from within an object is not being...
0
by: farooq | last post by:
Hi guys, I’m facing some problem can u solve it. Problem is: I’m giving user Id and password in (Login_sess.asp) and submit it to page (sess_test.asp). I am setting session variable...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
1
by: Tony | last post by:
Hi, I am a newbie, currently i am doing a project, upon user login, there will be 3 or 4 levels of previleges of access to the system, that is, for example, User A can only access 1.aspx, 2.aspx,...
4
by: Ralph Krausse | last post by:
ViewState = "Bill"; -- This statement will send that to the browser and hash it into the __VIEWSTATE hidden varible Application = "Bill"; -- This statement will keep this info on the server ...
3
by: Shawn | last post by:
Hi. In my application I store information about the user in the session object. Since I'm storing sensitive information I encrypt it before storing and decrypt it when I need to use it again. The...
14
by: isaac2004 | last post by:
how would go about making a session timeout expire with a method like you can expire a cookie by going Date() - 1
0
by: Aarchaic | last post by:
Hello i have problem my session variables seem to disapear as i go along i've created this code to ilustrate whats happening First off i just post 3 detials like a name a age and a favourite...
9
by: arial | last post by:
Hi all, I have problem with session variable on .net web form. I am saving ID in session to pull up the other .net web form it works fine with my development environment but as soon as I put...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.