Forums » .NET » ASP.NET »

Session Issue: Session Gets Expired for all the users in a website


Posted Date: 02 Oct 2008      Posted By:: Jigar Joshi     Member Level: Gold    Member Rank: 0     Points: 1   Responses: 9



Hi Team,

This is the strange problem I am facing since couple of days. My site is hosted on Godaddy servers(shared hosting).

In my application, since last couple of days, session expires frequently. There are no code updates and it started suddenly.

Also, the session gets expired for ALL USERS of the WEBSITE together.

THis is very strange issue but are not able to figure out what is the cause.
Has anyone in the team faced such issues with Godaddy?

Our site is LIVE on the production server and I need your expert Help ASAP.

Regards
Jigar J





Responses

#302887    Author: megha      Member Level: Bronze      Member Rank: 0     Date: 02/Oct/2008   Rating: 2 out of 52 out of 5     Points: 2

You can increase the session time out in by setting the Session timeout in the Web.config file

Regards,
Megha


 
#302889    Author: megha      Member Level: Bronze      Member Rank: 0     Date: 02/Oct/2008   Rating: 2 out of 52 out of 5     Points: 2

use <sessionState timeout ="120" mode="InProc" cookieless="true" />

Regards,
Paresh


 
#302890    Author: Jigar Joshi      Member Level: Gold      Member Rank: 0     Date: 02/Oct/2008   Rating: 2 out of 52 out of 5     Points: 2

Hey Megha,

Session timeout is set to 120.

Don't think that this is related to session time out.

In case, if this is session time out issue, what's the logic of
session getting expired for ALL the users of website!!!!

Regards
Jigar





 
#302891    Author: Jigar Joshi      Member Level: Gold      Member Rank: 0     Date: 02/Oct/2008   Rating: 2 out of 52 out of 5     Points: 2

Hi Paresh,

I have already set the session timeout to 120.

Not getting why the session gets expired for all the users
SIMULTANEOUSLY.

Regards
Jigar


 
#302896    Author: megha      Member Level: Bronze      Member Rank: 0     Date: 02/Oct/2008   Rating: 2 out of 52 out of 5     Points: 2

Might be because of server load the site became unresponsive. Could you transfer the root of site to less loaded server and check whether it is working or not. Also is it expiring before 120 seconds?

Regards,
Megha


 
#302904    Author: Jigar Joshi      Member Level: Gold      Member Rank: 0     Date: 02/Oct/2008   Rating: 2 out of 52 out of 5     Points: 2

Hi Megha,

We are hosted on godaddy server.
Pointing our LIVE site from production folder to other server might
take some good amount of time, which is unacceptable.

Do u have ny other ideas?

Again, am thankful to ur sincere efforts!

Thanks
Jigar


 
#302919    Author: Jigar Joshi      Member Level: Gold      Member Rank: 0     Date: 02/Oct/2008   Rating:     Points: -10

[Response removed by Admin for invalid response to the thread or violation of forum policies.]

 
#309381    Author: Miss Meetu Choudhary        Member Level: Gold      Member Rank: 14     Date: 22/Oct/2008   Rating: 2 out of 52 out of 5     Points: 6

In computer science, in particular networking, a session is a semi-permanent interactive information exchange, also known as a dialogue, a conversation or a meeting, between two or more communicating devices, or between a computer and user (see Login session). A session is set up or established at a certain point in time, and torn down at a later point in time. An established communication session may involve more than one message in each direction. A session is typically, but not always, stateful, meaning that at least one of the communicating parts need to save information about the session history in order to be able to communicate, as opposed to stateless communication, where the communication consists of independent requests with responses.

Communication sessions may be implemented as part of protocols and services at the application layer, at the session layer or at the transport layer in the OSI model.

* Application layer examples:
o HTTP sessions, which may allow dynamic web pages, i.e. interactive web pages, as opposed to static web pages.
o A telnet remote login session
* Session layer example:
o A Session Initiation Protocol (SIP) based Internet phone call
* Transport layer example:
o A TCP session, which is synonymous to a TCP virtual circuit, a TCP connection, or an established TCP socket.

In the case of transport protocols which do not implement a formal session layer (e.g., UDP) or where sessions at the session layer are generally very short-lived (e.g., HTTP), sessions are maintained by a higher level program using a method defined in the data being exchanged. For example, an HTTP exchange between a browser and a remote host may include an HTTP cookie which identifies state, such as a unique session ID, information about the user's preferences or authorization level.

Protocol version HTTP/1.1 makes it possible to reuse the same TCP session for a sequence of service requests and responses (a sequence of file transfers) in view to reduce the session establishment time, while HTTP/1.0 only allows a single request and response during one TCP session. However, this transport layer session mechanism should not be confused with a so called HTTP session, since it is not lasting sufficiently long time, and does not provide application level interactive services such as dynamic web pages.

for more details visit

http://en.wikipedia.org/wiki/Session_(computer_science)
http://en.wikipedia.org/wiki/Session_(parliamentary_procedure)

==
Thanks and Regards
Meetu Choudhary

Thanks and Regards
Miss Meetu Choudhary (Site Coordinator)
Go Green Save Green


 
#312322    Author: Dinesh      Member Level: Bronze      Member Rank: 0     Date: 01/Nov/2008   Rating: 2 out of 52 out of 5     Points: 3

If their is any file operation carried out in the application directory then the session will restat.

so avoid to use application directory for file operation.


 
Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.



Next : about state management
Previous : table
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages

Subscribe to Subscribers
Awards & Gifts
Talk to Webmaster Tony John

Online Members

Touseef
More...
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India