Web Forms :: Session Is Not Alive For Long Time
May 14, 2012I have used session in my application for admin panel. It is redirecting if i not use 1 or 2 minutes. I need to stay session until I click logout button.
View 1 RepliesI have used session in my application for admin panel. It is redirecting if i not use 1 or 2 minutes. I need to stay session until I click logout button.
View 1 Replieshow to set asp.net session alive no session timed out problem
View 11 RepliesI have a web app containing a silverlight application. How do I keep the ASP.NET session / Forms Authentication alive when the user is using the silverlight application?
View 1 RepliesI am working on a ASP.NET 2.0 application. It is hosted on IIS 6 on Windows 2003 server.
Few pages have jpeg images (around 50 images and 50 KB each). It takes long time to load the page for the first time. But when i open the same page for the second or third time it is faster.
why does a web page take long time to load for the first time?
Is it cached somewhere when it loads for the first time? Do we have any control over it?
i have a website where i want to keep the session alive while user has browser open?
View 9 RepliesThis is quite straight forward. I'm calling a web-service (.asmx, with session enabled) from a c# application. I want each call to be with the same session key as the previous one (as opposed to creating a new session key each time).
Here's my (nothing-out-of-the-ordinary) code:
[Code].....
if updating a session value from within a webmethod call made from jquery would be able to keep my session alive?
JS:
$.ajax({
type: "POST",
url: "MyWebService.asmx/Keepalive",
async: true, [code]....
I have a Authorizeclient.aspx.cs page where I set my session value.Authorizeclient.aspx is a blank page. HttpContext.Current.Session["nodeID"]="0". This session value changes from 0 or non zero which depends on the value returned by Database. If no value is returned I assign HttpContext.Current.Session["nodeID"]="0" as the default state else I assign HttpContext.Current.Session["nodeID"]=resolve(nodeID).ToString()
Till this part it works fine as expected. However, I have a requirement that I need to read the nodeID from Session in other application on the same server. I mean this application too is part of the root project where I initially created the Session and set it. The strange thing is the Session["nodeID"] in application gets null "SOMETIMES" Not always. I am trying to read the Session in Page_Load. Sometimes it works fine and sometimes it gets null. Moreover the session object do not die and I can see other keys like Session["Themes"] etc there. The session is in InProc mode and have 20 minutes timeout time.
I have developed an application in asp.net with crystal report. It has more than 30 pages in the project. Now I want to improve the performance of the application.1. What I need is , I want to know each and every page loading time and where actually it take long time to load while requesting the page.There are so many tools available. But am not able to follow as where actually the problem is and how to solve.
View 6 Repliesi have a web aplication in asp.net 2.0. i have configured it using IIS when i am trying to access the webpage even thr' the IIS , the page is not getting displayed.there is no error msg nor any msg , but nothing appears even for a very long timethe webapplication was wrking fine 2 days back
after nearly 5 mts i get a msg Thread was being aborted. Description: An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Threading.ThreadAbortException: Thread was being aborted.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ThreadAbortException: Thread was being aborted.]
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +486
System.Web.ApplicationStepManager.ResumeSteps(Exception error) +501
System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) +123
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +379
Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082
I want to implement user login function , that allow user to login after couple of weaks without asking username and password again. I have read many article and got that it is maintain by Cookie but don't know how to implement this one. A good example is seen in gmail, facebook [URL] .... that allow user logged in for couple of weaks. I also want to maintain a cookie table for just keepig the records of user logged in from different system.
View 1 RepliesI want keep session active
How to change this example to keep session active? [URL]
I have selected around hundred data and then bind to the repeater each times it take a long time to save data after clicking the save button. How can i improve the performance?
View 6 RepliesIt looks likes if I don't visit my low traffic site for a day, it takes a long time for the first page to load. I believe it's probably because IIS7 shuts down the application when it receives no requests for a certain length of time. I have a dedicated server so I have all the access required to change things in IIS
View 3 RepliesFor some reason it takes 7 seconds to open a connection to a sql server database for the firt time, subsequent connections takes a second.
I'm using C# and asp.net
Its after compilation, i essence every time i restart the site, which means every time it needs to actualy create the "first" connection. i understand that setting up connection pooling has overhead, but i have never seen that i should take 7 second to set it up.
Here are somethings confused me for session timeout. Below are the list of setting:
1) In app web.config, I set sessionstate timeout = 120
2) In IIS6 of web server,
DefaultAppPool, property, Recycle worker processes(in minutes): 15
Web Sites, property, connection timeout: 120 seconds
So, how long is timeout for session?
I have a gridview set up as follows:
[Code]....
Now, as you can see I've set up the commandargument, and was expecting to get to that in my code behind file. My code is as follows:
[Code]....
Ok...so far so good, and as long as I'm the only one working on the system it works fine. The problem is if this scenario happens:
* I go to the page and look at the gridview
* Someone else enters a new record into the database, causing the first row to contain a new record (not displayed in my browser)
* I click select.
What happens then is that, for some odd reason, I will get n numbers higher than the one I actually selected (n = num_added -num_removed).
I was under the impression that the commandargument wouldn't change for my session as long as I didn't refresh the gridview...?... There are no ajax or anything else messing with postbacks or viewstate as far as I can see..
I have tested my pages in Firefox & IE and looking at Firebug in Firefox for some reason some images are taking a long time to load. They are not very big in comparison to the ones which are loading quicker.
Attached is a screenshot of Firebug.
I especially notice it in IE with the progress bar at the bottom of the page, it just sits there saying loading image...
Could it be the path or something which is http://localhost:49211/Content/_layout/images/bg-footer.png for example
We deplyed an application to a host, my default asp.net page load 3 small catalogs, this delay to load about 15 secondsthe first time, Can I do something about it
View 1 Repliesmy sp take long time to execute. Why that?alter PROCEDURE [dbo].[sp_Util_DocPlanProgess21]
View 2 RepliesI have a web page which has a textbox and a button. The textbox has a calendar extender attatched to it.On my machine it is popup quickly but when i published it on the server it's taking a very long time to show and sometimes it doesn't. It's like loading or downloading something. Any Clues .....
asp:TextBox ID="txtDateFrom" runat="server" CssClass="TxtBoxDate" meta:resourcekey="txtDateFromResource1"></asp:TextBox>
<ajax:CalendarExtender ID="extCalendarStartDate" runat="server" CssClass="calTheme" Format="yyyy/MM/dd" FirstDayOfWeek="Sunday" PopupPosition="BottomRight" TargetControlID="txtDateFrom" OnClientDateSelectionChanged="checkDate" Enabled="True"> </ajax:CalendarExtender>
[code]...
i developed a website already and it was hosted in live too. My Problem is , site take a very long time to load , it take nearly 30-60 seconds to open , once it opened then it is some what better, MY Url Ishttp:\shoesrus.msinternational.bizplease verify and give me a solution , is their is any setting changes has to be taken in iis or server side etc..
View 3 Replieswhenever I replace a master page on my site the pages load after a few hours(1-2) and only after that the site returned to work as normal.. I dont use VS "open web site" from the web method, instead I download the page I want to change (using flashfxp for instance), make my changes and upload it back. I do this process because every now and then the VS stuck/not responding/think long time. he master pages I change are used by few thousand of pages in the site, my thought is that whenever I change a master all the site get rebuild and therefor the long loading time..
View 11 RepliesI have IIS 7.5 running on windows 7 64 bit machine.
My problem is that in my web application after any page request if the page remains idle for more than 2 mins, it stops responding. For e.g. lets take the following scenario:
1. Initial page request
2. the page stays idle for 2 mins
3. Click a button to save data
4. It takes very long for the aspnet worker process to reach page_load, and firefox shows "connection was reset" message.
I put breakpoint on page_load. It strikes the breakpoint after a long time and also it does not go to the event handler of the button that was clicked.
The web application works perfectly if the page is not kept idle.
I am not using sessions in my web application.
When I try to delete files or directories within the solution explorer, they take an excessive amount of time to delete. When I say excessive, I mean I almost had enough time to type this post out before a directory with nothing in it was finally removed. I'm using visual studio 2010 on Windows XP SP3 and I primarily program in MVC/C#.
View 7 Replies