473,657 Members | 2,420 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

session state dies

we've just set up a subdomain, 'demos' for one of our projects that normally
works fine. on the login page, if the user enters the correct username/pw,
we write session info and then response.redire ct to the home page. this
works for on the normal site, but session state info is dying on the demo
subdomain. i'm sure the session info is being written since i can see it
when i response.write the value. also, the response.redire ct uses a relative
path, so it's not that we're accidentally changing domains. any idea what's
happening?

tks
Jul 22 '05 #1
4 1688
What OS?
Does it happen every time or erratically?
Is the home page in the same virtual directory as the login page? Same
folder? If in different folder, is one or the other inadvertently set to be
an application?

--
--Mark Schupp
"Dica" <ge*****@hotmai l.com> wrote in message
news:Id******** ************@ro gers.com...
we've just set up a subdomain, 'demos' for one of our projects that
normally
works fine. on the login page, if the user enters the correct username/pw,
we write session info and then response.redire ct to the home page. this
works for on the normal site, but session state info is dying on the demo
subdomain. i'm sure the session info is being written since i can see it
when i response.write the value. also, the response.redire ct uses a
relative
path, so it's not that we're accidentally changing domains. any idea
what's
happening?

tks

Jul 22 '05 #2

"Mark Schupp" <no******@email .net> wrote in message
news:eW******** ******@TK2MSFTN GP12.phx.gbl...
What OS?
windows 2000 advanced server Does it happen every time or erratically? every time
Is the home page in the same virtual directory as the login page? yes

Same folder? yes

If in different folder, is one or the other inadvertently set to be an application?
i thought there might have been a problem with one of the include files on
the login or home page killing the session objects, so i created a totally
new page without any includes and attempt to response.write the session
values, but 's still blank. new test page is in the same folder as the
login.

--
--Mark Schupp
"Dica" <ge*****@hotmai l.com> wrote in message
news:Id******** ************@ro gers.com...
we've just set up a subdomain, 'demos' for one of our projects that
normally
works fine. on the login page, if the user enters the correct username/pw, we write session info and then response.redire ct to the home page. this
works for on the normal site, but session state info is dying on the demo subdomain. i'm sure the session info is being written since i can see it
when i response.write the value. also, the response.redire ct uses a
relative
path, so it's not that we're accidentally changing domains. any idea
what's
happening?

tks


Jul 22 '05 #3
Have you worked through everything in this list:

http://www.aspfaq.com/show.asp?id=2157

Create a simple page that demonstrates the problem and list the code here.
Something like:

<%
If Trim(Session("m yvar")) = "" Then
Response.Write "not here"
Session("myvar" ) = "i'm here"
Else
Response.Write "session var=" & session("myvar" )
end If
%>

should change from "not here" to "i'm here" when refreshed. Does it?

--
Mark Schupp

"Dica" <ge*****@hotmai l.com> wrote in message
news:qP******** ************@ro gers.com...

"Mark Schupp" <no******@email .net> wrote in message
news:eW******** ******@TK2MSFTN GP12.phx.gbl...
What OS?


windows 2000 advanced server
Does it happen every time or erratically?

every time
Is the home page in the same virtual directory as the login page?

yes

Same
folder?

yes

If in different folder, is one or the other inadvertently set to be
an application?


i thought there might have been a problem with one of the include files on
the login or home page killing the session objects, so i created a totally
new page without any includes and attempt to response.write the session
values, but 's still blank. new test page is in the same folder as the
login.

--
--Mark Schupp
"Dica" <ge*****@hotmai l.com> wrote in message
news:Id******** ************@ro gers.com...
we've just set up a subdomain, 'demos' for one of our projects that
normally
works fine. on the login page, if the user enters the correct username/pw, we write session info and then response.redire ct to the home page. this works for on the normal site, but session state info is dying on the demo subdomain. i'm sure the session info is being written since i can see it when i response.write the value. also, the response.redire ct uses a
relative
path, so it's not that we're accidentally changing domains. any idea
what's
happening?

tks



Jul 22 '05 #4

"Mark Schupp" <no****@nospam. com> wrote in message
news:e0******** ******@TK2MSFTN GP14.phx.gbl...
Have you worked through everything in this list:

http://www.aspfaq.com/show.asp?id=2157
thanks mark. your link led me to the problem - the subdomain has an
underscore character in it.
Create a simple page that demonstrates the problem and list the code here.
Something like:

<%
If Trim(Session("m yvar")) = "" Then
Response.Write "not here"
Session("myvar" ) = "i'm here"
Else
Response.Write "session var=" & session("myvar" )
end If
%>

should change from "not here" to "i'm here" when refreshed. Does it?

--
Mark Schupp

"Dica" <ge*****@hotmai l.com> wrote in message
news:qP******** ************@ro gers.com...

"Mark Schupp" <no******@email .net> wrote in message
news:eW******** ******@TK2MSFTN GP12.phx.gbl...
What OS?
windows 2000 advanced server
Does it happen every time or erratically?

every time
Is the home page in the same virtual directory as the login page?

yes

Same
folder?

yes

If in different folder, is one or the other inadvertently set to be
an application?


i thought there might have been a problem with one of the include files on
the login or home page killing the session objects, so i created a totally new page without any includes and attempt to response.write the session
values, but 's still blank. new test page is in the same folder as the
login.

--
--Mark Schupp
"Dica" <ge*****@hotmai l.com> wrote in message
news:Id******** ************@ro gers.com...
> we've just set up a subdomain, 'demos' for one of our projects that
> normally
> works fine. on the login page, if the user enters the correct

username/pw,
> we write session info and then response.redire ct to the home page.

this > works for on the normal site, but session state info is dying on the

demo
> subdomain. i'm sure the session info is being written since i can
see it > when i response.write the value. also, the response.redire ct uses a
> relative
> path, so it's not that we're accidentally changing domains. any idea
> what's
> happening?
>
> tks
>
>



Jul 22 '05 #5

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

Similar topics

27
7111
by: mrbog | last post by:
Tell me if my assertion is wrong here: The only way to prevent session hijacking is to NEVER store authentication information (such as name/password) in the session. Well, to never authenticate a user from information you got from the session. Each secure app on a site must challenge the user for name and password, each and every time the user accesses it (not just once and then store it in the session). If a secure app is multi-page,...
3
3454
by: | last post by:
This is a very open ended question. I have an app with a page that uses link buttons to change the display. On the prior page you have a list of objects. You click one of those objects to see it's details. I have nav Link buttons that allow you to go to previous or next object from the object list on previous page. In the command event of the linkbutton, the page is redrawn with the details of the next or previous object. I am using...
1
4308
by: Robert | last post by:
In Web.config file is a setting for sessionState. If I want to maintain a users' session state (ie use the Session object) in a web farm that is being load balanced by a Cisco CSS 11501 Switch. How do I setup sessionState so anything saved to the Session object stays with that session no matter what web server they get bounced around to?
2
328
by: Raj | last post by:
Hi Please help me out. I have specified a Session timeout of 30 mins in my web.config file. I'm using the InProc mode. But my session is expirng very quickly max 5 mins. There are almost 200 users who will be logging into system everyday. I'm running my application on Win 2000 with IIS 5.0 and its a secure site Thank Raj
6
1466
by: Mr m?ll | last post by:
Hi Im quite new to web programming and I'm buildning this ASP .net page. I use VS 2003 and C# + IIS 5. The page consists of a login page that leads to a frame page (with some pages, reading from a MSDE-database) In the projects web.config-file I have sessionState mode="InProc" cookieless="true" timeout="40"
31
6989
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 using Session variables for three years now and i'm entering a project with my new boss who has never quite come around that session variables are ok. What's the concensus here. How can i convince him that they are ok in ASP.NET. OR
3
3311
by: bennett | last post by:
In the web.config file for my application, in the <sessionState> section I have set timeout="120" (in minutes), but session state variables in my application seem to be expiring in about 5 minutes. Any idea what could cause this? I have the mode="InProc" attribute set for <sessionState>. I know that some people have solved the problem of session variables timing out too quickly by changing that attribute, but I cannot use...
4
1693
by: Ibrahim. | last post by:
Hi, Kindly clarify the followings; 1. Is the session cookie & FormsAuthenticationTicket cookie Interdependent? 2. When a new SessionID is generated, I have noticed the Session Cookie and the FormsAuthentication cookie are binded. 3. I need to know whether it's possible by Code or settings to treat the
11
3642
by: Glenn | last post by:
Hi I've been experimenting with managing state using the Session object. I've created a simple WS with a couple of methods, one which sets a string value, another that retrieves it. Each method has the WebMethodAttribute.EnableSession set to true. When I run the test page the session is maintained. However, using a console application, in between setting the string value and attempting to
0
8395
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8310
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
8826
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8732
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
8503
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
7330
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, and deployment—without 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
6166
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
5632
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
4155
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...

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.