| | |
ASP.NET - session objects Problem
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jan 2005
Posts: 8
Reputation:
Solved Threads: 0
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
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
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!
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
•
•
Join Date: Apr 2005
Posts: 9
Reputation:
Solved Threads: 1
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
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
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?
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
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).
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
•
•
Join Date: Nov 2008
Posts: 17
Reputation:
Solved Threads: 4
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.
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.
Then I will suggest you to change your web.config code like this.
ASP.NET Syntax (Toggle Plain Text)
<sessionState mode="StateServer" cookieless="false" 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.
•
•
•
•
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.
![]() |
Similar Threads
- ASP.NET/SQL Developer/Programmer (Web Development Job Offers)
- ASP.NET Session Object? (C#)
- Asp.net-Database Insert problem (ASP.NET)
- ASP .Net Session Ends After about a minute (ASP.NET)
- Clustered Cache in ASP.NET (ASP.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: appending and eleminating elements from the list
- Next Thread: Problem with Edit/Update in GridView...
| Thread Tools | Search this Thread |
.net activexcontrol advice ajax alltypeofvideos appliances asp asp.net bc30451 beginner bottomasp.net browser button c# c#gridviewcolumn cac checkbox commonfunctions compatible confirmationcodegeneration css dataaccesslayer database datagridview datagridviewcheckbox datalist deadlock deployment development dgv dropdownlist dynamic dynamically edit embeddingactivexcontrol fileuploader fill findcontrol flash formatdecimal forms formview gridview gudi homeedition iframe iis javascript jquery listbox microsoft mono mouse mssql multistepregistration news novell numerical objects opera panelmasterpagebuttoncontrols radio redirect registration relationaldatabases reportemail rotatepage schoolproject search security sessionvariables silverlight smartcard smoobjects software sql-server sqlserver2005 ssl suse textbox tracking treeview unauthorized validatedate validation vb.net video videos virtualdirectory vista visualstudio web webapplications webdevelopemnt webdevelopment webprogramming webservice xml xsl youareanotmemberofthedebuggerusers





