473,387 Members | 1,502 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,387 software developers and data experts.

Session Variables...

I am using Session variables in my ASP application. I have tested the
application on a Win2k professional and it works fine. When the same web
app is installed on a win2k advanced server from the client browser when the
app is accessed the session variable returns null inspite of a value being
already set. I have checked the IIS enable session state settings. When i
use the server machine as client and access the app as localhost then the
session variable has correct value.

How can this be solved? What other settings if any, need to be changed to
get it work.

Thanks,
RamG
Jul 19 '05 #1
3 2830
http://www.aspfaq.com/show.asp?id=2157

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Microsoft" <so*****@everyone.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
I am using Session variables in my ASP application. I have tested the
application on a Win2k professional and it works fine. When the same web
app is installed on a win2k advanced server from the client browser when the app is accessed the session variable returns null inspite of a value being
already set. I have checked the IIS enable session state settings. When i use the server machine as client and access the app as localhost then the
session variable has correct value.

How can this be solved? What other settings if any, need to be changed to
get it work.

Thanks,
RamG

Jul 19 '05 #2
check in IIS , is your virtual directory is "application" or not....

!mran Khan

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #3
rwg
The browser can affect session state information. In order to maintain session information in the 'internet' zone, either "First Party Cookies" and/or "Always
allow session cookies" must be allowed in the Internet Explorer.
< In IE: Menu: Tools -> Internet Options for the Internet Options panel. Tab: Privacy, button: Advanced for the "Advanced Privacy Options dialog. >

These settings do not apply to the 'local intranet zone' where session information is maintained despite the options chosen here. This leads to the
IWOMDS ('It Works On My Desk Syndrome')

Other reasons for the loss of session information are:

* Session timeout. In ASP, this is an IIS setting. In ASPX, this is set in the web.config file for the application.

* If the IIS worker process fails for some reason, such as an application crash, a change or anti-virus touch of the global.asp file, the session information is
reset.

PRB: Session Data Is Lost When You Use ASP.NET InProc Session State Mode
http://support.microsoft.com/?id=324772

* If using a Web Garden, session state is not maintained from one processor to another processor in the garden.

IIS 6.0 Session State May Be Lost If You Use Web Gardens with ASP
http://support.microsoft.com/?id=822171

* Use of a Frameset where frame s point to seperate Web Sites can lose Session information due to P3P standards (Platform for Privacy Preferences)

PRB: Session Variables Are Lost If You Use FRAMESET in Internet Explorer
http://support.microsoft.com/?id=323752

* ASP.NET session management information
INFO: ASP.NET State Management Overview
http://support.microsoft.com/?id=307598
- and -
http://msdn.microsoft.com/library/de...ssionstate.asp

---
Why won't my session variables stick?
http://www.aspfaq.com/show.asp?id=2157

-rwg
This is what I think, not necessarily what is accurate!

--------------------
| From: "Microsoft" <so*****@everyone.com>
| Subject: Session Variables...
| Date: Wed, 10 Mar 2004 20:48:28 +0530
| Lines: 15
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
| Message-ID: <#c**************@TK2MSFTNGP09.phx.gbl>
| Newsgroups: microsoft.public.inetserver.asp.general
| NNTP-Posting-Host: 203.112.158.70
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP09.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.inetserver.asp.general:267967
| X-Tomcat-NG: microsoft.public.inetserver.asp.general
|
| I am using Session variables in my ASP application. I have tested the
| application on a Win2k professional and it works fine. When the same web
| app is installed on a win2k advanced server from the client browser when the
| app is accessed the session variable returns null inspite of a value being
| already set. I have checked the IIS enable session state settings. When i
| use the server machine as client and access the app as localhost then the
| session variable has correct value.
|
| How can this be solved? What other settings if any, need to be changed to
| get it work.
|
| Thanks,
| RamG
|
|
|
Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Al Jones | last post by:
This is a repost form the vbscript newgroup - if this isn't the appropriate group would you point me toward one that is. Basically, I seem to be losing session data part way though preparing an...
6
by: Lina Manjarres | last post by:
Hello, I have a session variable in a login page. Then I go to a form page where I uses the ProfileID and the UserID. Then I go to a result page where I would like to use the UserID as a filter,...
4
by: PJ | last post by:
A particular page seems to be having issues with correctly setting Session variables. I am setting a couple of session variables on the Page_Unload event. While stepping through code, the...
31
by: Harry Simpson | last post by:
I've come from the old ASP camp where session variables were not used. When i started using ASP.NET in 2001, I started using them again because it was ok from what I'd read. I've been merrily...
10
by: tshad | last post by:
I have been using the default session state (InProc) and have found that I have been loosing my information after a period of time (normally 20 minutes). Is there anyway to find out how much...
3
by: Alan Wang | last post by:
Hi there, Once my application gets complicated and complicated. I found it's really hard to keep track of Session value I am using in my asp.net application. I am just wondering if anyone have...
3
by: Phillip N Rounds | last post by:
I'm writing a user control which has two states: Active & InActive. I additionally am required that there to be only one active control per page, and all logic has to be contained within the...
18
by: BillE | last post by:
When a user opens a new IE browser window using File-New-Window the integrity of an application which relies on session state is COMPLETELY undermined. Anyone who overlooks the fact that...
26
by: BillE | last post by:
Some ASP.NET applications use Session Variables extensively to maintain state. These should be re-written to use viewstate, hidden fields, querystring, etc. instead. This is because if a user...
12
by: MrHelpMe | last post by:
Hello again all, I've finished my whole application and now I don't like the whole session variables that I am using. I have a form, user fills in info clicks submit and using CDOSYSMail an...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.