ASP.NET - session objects Problem

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jan 2005
Posts: 8
Reputation: rooparaj is an unknown quantity at this point 
Solved Threads: 0
rooparaj rooparaj is offline Offline
Newbie Poster

ASP.NET - session objects Problem

 
0
  #1
Mar 17th, 2005
I am facing problem in asp.net.
Problem is : Session objects is not working properly.in the sense some times it will work some times not(getting empty).
Plz Can anyone help me in this . Its very urgent !!!!!!
Eg:
In web.config - In <Sessionstate timeout=30>,but before 30 minutes only its getting empty.
2) In Global.asa : session_start - if i give session("emp_code"),
Whwn i login some times that session("emp_code") is getting empty.

Thank you for reply

Rooparaj K N
Reply With Quote Quick reply to this message  
Join Date: Feb 2003
Posts: 793
Reputation: Paladine has a spectacular aura about Paladine has a spectacular aura about Paladine has a spectacular aura about 
Solved Threads: 27
Team Colleague
Paladine's Avatar
Paladine Paladine is offline Offline
Master Poster

Re: ASP.NET - session objects Problem

 
0
  #2
Mar 18th, 2005
To my knowledge you have to set the Method of Storage for the session.

See: Link

You need to specify the session storage method:

So that is why ou are having an empty Session!

Hope this helps!
Originally Posted by rooparaj
I am facing problem in asp.net.
Problem is : Session objects is not working properly.in the sense some times it will work some times not(getting empty).
Plz Can anyone help me in this . Its very urgent !!!!!!
Eg:
In web.config - In <Sessionstate timeout=30>,but before 30 minutes only its getting empty.
2) In Global.asa : session_start - if i give session("emp_code"),
Whwn i login some times that session("emp_code") is getting empty.

Thank you for reply

Rooparaj K N
Assistant Manager, Pharmacy Informatics
Wordpress Learning Blog
Updated : ASP.Net Login Code
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 9
Reputation: Qbit75 is an unknown quantity at this point 
Solved Threads: 1
Qbit75 Qbit75 is offline Offline
Newbie Poster

Re: ASP.NET - session objects Problem

 
0
  #3
Apr 14th, 2005
hi Paladine
its praveen i want to ask u how can i store my customer id in any variable so i can access it in Query to get data form table then and then i want to use it in next or next page
2 when i use back button then it will run my load event from that particular id and return all information so user didn't get Error
can u halp me to do this
Reply With Quote Quick reply to this message  
Join Date: Feb 2003
Posts: 793
Reputation: Paladine has a spectacular aura about Paladine has a spectacular aura about Paladine has a spectacular aura about 
Solved Threads: 27
Team Colleague
Paladine's Avatar
Paladine Paladine is offline Offline
Master Poster

Re: ASP.NET - session objects Problem

 
0
  #4
Apr 14th, 2005
Ok I am sorry to say, but your question is framented, and a little vague.

The page_load event does not fire when you use the back button. This event only fires on a Refresh or first time to the page. Back button relies on the browser cache.

To retain the CustomerID for what ever purpose, I would just use a session variable.

Session_Start
Session("CustID") = 0

Then in the first query on the DB, you reassign the retrieved value to th Session object.

Not sure whatelse you are asking for?


Originally Posted by Qbit75
hi Paladine
its praveen i want to ask u how can i store my customer id in any variable so i can access it in Query to get data form table then and then i want to use it in next or next page
2 when i use back button then it will run my load event from that particular id and return all information so user didn't get Error
can u halp me to do this
Assistant Manager, Pharmacy Informatics
Wordpress Learning Blog
Updated : ASP.Net Login Code
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 9
Reputation: Qbit75 is an unknown quantity at this point 
Solved Threads: 1
Qbit75 Qbit75 is offline Offline
Newbie Poster

Re: ASP.NET - Creating UserControls

 
0
  #5
Apr 23rd, 2005
hi i want a user control to show me a popup calender and then i select a date and it comes in the text box as 24-mar-2005 is it possible if yes then give me link or code behind
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 9
Reputation: Qbit75 is an unknown quantity at this point 
Solved Threads: 1
Qbit75 Qbit75 is offline Offline
Newbie Poster

I want to convert my access db into xml and xsl ,xslt

 
0
  #6
Apr 28th, 2005
hi is it possible to convert a access db int0o the xml, xsl, xslt files
i read it but forget it so i wnat to reopen it
Reply With Quote Quick reply to this message  
Join Date: Feb 2003
Posts: 793
Reputation: Paladine has a spectacular aura about Paladine has a spectacular aura about Paladine has a spectacular aura about 
Solved Threads: 27
Team Colleague
Paladine's Avatar
Paladine Paladine is offline Offline
Master Poster

Re: I want to convert my access db into xml and xsl ,xslt

 
0
  #7
Apr 28th, 2005
The sentence kind of makes sense, but maybe you could take another stab at it and explain what you want to do exactly? And how that applies to session objects (the theme of this thread)?

You can convert the Access DB tables to XLS, HTML or ASP files, but not to xml or xsl/xslt files (to my knowledge not directly anyway).

Originally Posted by Qbit75
hi is it possible to convert a access db int0o the xml, xsl, xslt files
i read it but forget it so i wnat to reopen it
Assistant Manager, Pharmacy Informatics
Wordpress Learning Blog
Updated : ASP.Net Login Code
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 17
Reputation: johnly is an unknown quantity at this point 
Solved Threads: 4
johnly johnly is offline Offline
Newbie Poster

Re: ASP.NET - session objects Problem

 
0
  #8
Nov 28th, 2008
If your problem is that your page is getting timed out before the timeout value set.
Then I will suggest you to change your web.config code like this.

  1. <sessionState
  2. mode="StateServer"
  3. cookieless="false"
  4. timeout="30"/>

Here I have changed the session state to a seperate worker process (ASP state management server).

It is recommended to move your session into the stateserver or SQL server state management in the production environment.

Note: You need to start the 'ASP.NET State Service' windows service on the web server in order to make this code work.


Originally Posted by rooparaj View Post
I am facing problem in asp.net.
Problem is : Session objects is not working properly.in the sense some times it will work some times not(getting empty).
Plz Can anyone help me in this . Its very urgent !!!!!!
Eg:
In web.config - In <Sessionstate timeout=30>,but before 30 minutes only its getting empty.
2) In Global.asa : session_start - if i give session("emp_code"),
Whwn i login some times that session("emp_code") is getting empty.

Thank you for reply

Rooparaj K N
Last edited by peter_budo; Nov 29th, 2008 at 5:59 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC