View Complete Post
In my live site session time out with in 5 min only.how can i get the default i.e 20 min time . below webconfig file give below
<?xml version="1.0"?><!-- Note: As an alternative to hand editing this file you can use the web admin tool to configure settings for your application. Use the Website->Asp.Net Configuration option in Visual Studio. A full list of settings and comments can be found in machine.config.comments usually located in \Windows\Microsoft.Net\Framework\v2.x\Config --><configuration> <configSections> <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35"> <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup,
In the .NET Framework 2.0, NGen has been greatly improved and offers a number of compelling new features to make it easier and faster to deploy high-performance managed applications. This article introduces some of these new features and explains how and when you should use NGen to improve the performance of your apps.
MSDN Magazine April 2005
MSDN Magazine May 2000
My page is logging out in 20 minutes. I want my page should not be logged out for 60 mins.
Please suggest how to do this
A few of my clients are using XBAP application running over .net 4 client profile in IE8. The operating system they use is windows XP (service pack 2 or 3) on all their machines. We've had no issues during install of the .net framework or our XBAP application
but many of them are complaining that after keeping the xbap open for a long time their computer begins to slow down considerably. This specially happens when program is left open without using it for some time. On my own development system which is a windows
7 machine with full .net framework installed i haven't experienced such issue.
I checked for resource usage of the application but there is no significant increase in memory usage. The CPU consumption however becomes quite high, which I suspect is the reason for degradation of performance during these episodes. If this was a single
case i would have ignored it for some glitch on their system but this is happening on many machines and I suspect this has got something to do with .net framework on xp machines.
I don't see any reason for why this should be happening. Is there any documented bug, report related to this ? Are there any compatibility issues of .net 4 with other common programs running in xp? Do you have any idea on why
this could be happening ? What kind of data should i provide you s
Now I am using Form authentication for my website.
It is something like that below. But if I left the website without using it for quite some time and when I used it back, it is redirected to the login page.
The one I want to know is that it is because of session expire or cookies expire. And if it is session expired, I want to show the alert box and redirect to the login page. And one more thing is that if the user keeps on using the website, I want to extend the session expire time. If you do not mind, I want to have some references for this scenario. Thank you so much.
Anytime you change the object variable that is already assigned to a session variable, do you need to "re-save" the variable back into the session variable or does it do it automatically?
// abc is an object of some random type
Session["abc"] = abc; // initial declaration of session variable.
abc.a=1; // updated abc.a field after a button_click event
Session["abc"] = abc; // resave the new field value of 'a' back into the session variable 'abc'.
Or does the session variable already keep track of all changes made to the object and saves automatically?
Hi All,I have an issue of keeping the authentication and session state on a downloaded page, on the same website.I have 2 pages, page 1 will download page 2, using the following code: Page 1 code:System.Net.WebClient webClient = new System.Net.WebClient();byte buffer = webClient.DownloadData("http://www.mywebsite.co.uk/page2.aspx");return Encoding.UTF8.GetString(buffer);but the authentication is lost, so i needed to re-login in page 2 by writing auto login code myself.But then the session is lost, so the session variables set in page 1 cannot be share to page 2, and vice versa.Ideally, i needed page 2 to keep the authentication and session state when i call webClient.DownloadData()Is there a way to do this?Many thanks!
I have a structure that groups a number of fields together that I want to use to retain values between different web pages. My plan was to transfer the structure to a session variable and retrieve it as each page loads. In theory each of the different fields could be stored in and retrieved from separate session variables but the structure approach seemed more elegant.
I was initially assuming I would be a "sensible time" (e.g. specific event) when I could consistently save the structure content to the session variable but I realise that I may be on the wrong track and that it may be necessary to transfer to the session variable to the structure each time one of the individual field values is updated as there is no way of determining when the user is about to move to another page.
Is there a solution to this or a better approach?
But its not getting the correct time that entered on date time field. Its defaultly getting the current time on my system.