473,698 Members | 2,058 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Session data is lost on first entry to application

Hi

I have a problem with certain users of my ASP.NET application. The user logs
into the site, and they are logged into the application. Then when they
select a link, they are presented with a "User session has timed out. Please
log in again" error message. They enter their login details again, and this
time the login works fine.

The session data seems to be getting lost. I've tried reconfiguring the
application to use SQL Server to manage session state, but I'm still getting
exactly the same behaviour. I'm suspecting it must be a problem on the
client, since it only seems to be happening with some users, and when the
user gets the session timeout error message, I don't see any calls to the SQL
Server to check the state before it starts a new one (i.e. its not that the
server is checking for a current session and not finding one).

How do I go about troubleshooting this?

Many thanks
Nov 19 '05 #1
6 1339

Can u share the code that makes the session to expire?
"Paul H" wrote:
Hi

I have a problem with certain users of my ASP.NET application. The user logs
into the site, and they are logged into the application. Then when they
select a link, they are presented with a "User session has timed out. Please
log in again" error message. They enter their login details again, and this
time the login works fine.

The session data seems to be getting lost. I've tried reconfiguring the
application to use SQL Server to manage session state, but I'm still getting
exactly the same behaviour. I'm suspecting it must be a problem on the
client, since it only seems to be happening with some users, and when the
user gets the session timeout error message, I don't see any calls to the SQL
Server to check the state before it starts a new one (i.e. its not that the
server is checking for a current session and not finding one).

How do I go about troubleshooting this?

Many thanks

Nov 19 '05 #2
Hi Baskar

If I knew what piece of code was making my session expire, I would already
have told it not to!

As I was saying, the session cookie seems to be getting lost on the client,
rather than the server.

Paul

"BASKAR BV" wrote:

Can u share the code that makes the session to expire?


Nov 19 '05 #3

This could be a caching problem maybe. Or a browser problem. You are too
vague to diagnose.
Do these users share their browser setting somehow (they are in the same
company) or are they realy independant?

If they are dependant that its probably a browser setting. If not I suspect
chacing cause it introduces a klind of indeterminism in the system.

I can recommend this tool for the browser :

http://www.blunck.info/iehttpheaders.html

Try to get a case that you can reproduce and see whats different in the traffic
between a good and a bad case.
Let me know if you have any more questions and good luck.

Cheers,
Tom Pester
Hi

I have a problem with certain users of my ASP.NET application. The
user logs into the site, and they are logged into the application.
Then when they select a link, they are presented with a "User session
has timed out. Please log in again" error message. They enter their
login details again, and this time the login works fine.

The session data seems to be getting lost. I've tried reconfiguring
the application to use SQL Server to manage session state, but I'm
still getting exactly the same behaviour. I'm suspecting it must be a
problem on the client, since it only seems to be happening with some
users, and when the user gets the session timeout error message, I
don't see any calls to the SQL Server to check the state before it
starts a new one (i.e. its not that the server is checking for a
current session and not finding one).

How do I go about troubleshooting this?

Many thanks

Nov 19 '05 #4
I don't think the browser settings are shared. I'm going to try to get a
closer look at the browser settings and HTTP headers - we've just started a
pilot of the AppSight Black Box software, so I can use that to get some extra
diagnostics.

I'm just curious whether anyone else has experienced something similar. It
seems very odd that the user session gets dropped on the second page they try
to access, and then works fine after that.

Thanks for the help

Paul

"tom pester" wrote:

This could be a caching problem maybe. Or a browser problem. You are too
vague to diagnose.
Do these users share their browser setting somehow (they are in the same
company) or are they realy independant?

If they are dependant that its probably a browser setting. If not I suspect
chacing cause it introduces a klind of indeterminism in the system.

I can recommend this tool for the browser :

http://www.blunck.info/iehttpheaders.html

Try to get a case that you can reproduce and see whats different in the traffic
between a good and a bad case.
Let me know if you have any more questions and good luck.

Cheers,
Tom Pester


Nov 19 '05 #5
WJ

"Paul H" <Pa***@discussi ons.microsoft.c om> wrote in message
news:D4******** *************** ***********@mic rosoft.com...

The session data seems to be getting lost. I've tried reconfiguring the
application to use SQL Server to manage session state, but I'm still
getting
exactly the same behaviour. I'm suspecting it must be a problem on the
client, since it only seems to be happening with some users, and when the
user gets the session timeout error message


Could it be that those client PCs have viruses and they interfere with your
sessions? Because I am using SQL Server for SS and it works fine though slow
but stable. My worst browser something start with "K" hosted on a Fedora, a
Linux distro., even that still works fine. Also check to make sure that
session is not abandoned using code behind somewhere.

Other suggestion is try to capture the SessionID on each page for each user
to make sure that it is the same at the time the server assigned it until
the user breaks off the browser.

John
Nov 19 '05 #6
Yay - solved it!

I got a black box recording of the user's browser session, which helped me
get to the bottom of it - it was a browser problem, rather than a server
fault.

Basically, the user was connecting to the site using an IP address stored in
his Favourites tab (eg http://123.4.5.6/test). He logs in successfully, and
is redirected to a relative URL (eg http://123.4.5.6/test/Worklist.aspx). He
then clicks on a hyperlink, which refers to an absolute URL using a domain
alias (eg http://www.myapp.co.uk/test/Enquiry.aspx). IE looks at the URL,
thinks it's an entirely different website, and drops the session ID it would
otherwise have sent to the server with the request.

I'm glad I finally got to the bottom of this one - I could have spent months
looking for bugs on the server without getting anywhere.

Thanks for the suggestions, people.

Paul

"Paul H" wrote:
I don't think the browser settings are shared. I'm going to try to get a
closer look at the browser settings and HTTP headers - we've just started a
pilot of the AppSight Black Box software, so I can use that to get some extra
diagnostics.

I'm just curious whether anyone else has experienced something similar. It
seems very odd that the user session gets dropped on the second page they try
to access, and then works fine after that.

Thanks for the help

Paul


Nov 19 '05 #7

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

Similar topics

9
2096
by: Patrick | last post by:
Hello I'm running two Webservers Using ASP.NET. both are running the same ASP.NET Application, with <sessionState mode="SQLServer" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=myserver;user id=myuser;password=mypw" cookieless="false" timeout="20" /> This seems to work. But we have cases, when users report that they loose the
3
2610
by: William | last post by:
Hi I have an ASP.NET application that connects to an Access database. Everything works fine except for the Session object. Data in the session object is lost after I've made a call to the database. To test, I've created two test aspx pages. Test1.aspx contains two buttons. The first button sets values in the session object and then navigates to Test2.aspx. Test2.aspx only displays the values in the session object. The second button...
43
3416
by: davidkoree | last post by:
I mean not about cookie. Does it have something to do with operating system or browser plugin? I appreciate any help.
1
2911
by: Andy | last post by:
Hi Gang I need help. I have an ASP application that in a nutshell allows data entry on a main page. The problem is I'll have users that enter some data and save it. Then they'll enter some more data and then leave it for 30 mins, 2 hours or whatever. So when they come back they've lost the session state and when they try to save their data, the application goes to a friendly error page saying they've lost the state.
0
8674
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
8603
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
9027
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
8895
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
8861
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7725
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...
0
4369
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...
2
2329
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.