473,785 Members | 2,321 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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("myv ar") it returns noting

Is this something to do with my configuration
Please help

/Prashantha
Jul 19 '05 #1
3 1629
You have tried writing the value?
<%=session("myv ar")%>

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******** ******@TK2MSFTN GP09.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("myv ar") 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("myv ar")%> ? 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("myv ar")%> . nothing returns .syntax
is quite ok
any idea

"dave" <no**@invalid.c om> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
You have tried writing the value?
<%=session("myv ar")%>

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******** ******@TK2MSFTN GP09.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("myv ar") 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******** ******@TK2MSFTN GP09.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("myv ar") 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
1700
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 saved, but all the other varibles within the same object are. Having a look at the created session file, shows an unusual field relating to the varible in question.
0
1100
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 (session(“Sin”)=”Yes”) just before redirecting to the same page, but in first time I do not received the value of session variable when I redirect it, when I execute this process second time or redirect it only with the page name...
8
5483
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 -------------------------------------------------------------------------------- Hello, I have a very simple problem but cannot seem to figure it out. I have a very simple php script that sends a test email to myself. When I debug it in PHP designer, it works with no problems, I get the test email. If
1
1638
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, User B can only access 2.aspx and 3.aspx. User C can access all. Anybody can give me a hint how to do that? use cookie or what? Thank you very much for your reply.
4
4148
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 Session = "Bill"; -- This statement will keep this info on the server
3
2101
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 encryption object I use is stored in the Application object. My problem is that after a while the encryption object becomes unusable. When I retrieve the object from Application and call the decrypt method I get an exception saying "Cannot...
14
659
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
1481
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 number. that in turn goes to the next page where its being picked up by the php code and put into the Global Variable. the page uses the variables with no problem and you can select a link to go onto the next page where the number is being...
9
1749
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 my application in production environment but session varible doesn't work. this what I have in session: String getid = Session.ToString();
0
9489
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10162
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10100
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8988
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 projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7509
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6744
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5396
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5528
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.