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
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,
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?
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?
I am having a website in which I am setting nearly 20 Session variables at the time of login authentication. ( Ex : Name, EmpID, Dept, Location, Email...).
Can u please tell which is one of the following is the better way to get Login user details
1) Through session variables at the time of login
2) In each and every page by calling the Stored Procedure to get login user details
Regards >> HemaBhushan
How to increase session time out for form based authenticated shrepoint site ,Default Sharepoint time out is 30 min ...I want session shuld expire after 120 min..
I noticed that when i am debugging my web application in Visual Studio 2005 using IIS, after about 10-15 minutes of inactivity, when I do something in the application such as a postback, I get an immediate error saying: "object reference not set to an instance" and my code breaks somewhere.
Is my assumption correct that this is because my session has timed out? ( i do have a 15 minute default session time)
my next question is, how do I display or set a way so that like many other pages, when the session has expired, a message will say: "This page must be refreshed" or "Your session has expired, click okay to refresh page" and start over again?
i am very new in wcf.suppose my wcf service is hosted in real ip server.Clients will request to service through internet.
client will request to service.The service will authenticate the client.After receiving the request the service will do some processing(like database update,delete,insert) and send a lot amount of data to client.client will do some database action and send
an acknowledgment to service.service will keep its in database as a record.I need to do it in a session and in a transaction.How can i do this.
i choose WSDuelHttpBinding.i read about callback operation.but according to the above scenario i also need to callback to the service again to send acknowledgment . Please help me.it's urgent .
if the system is idle for 10mins,i need to redirect to login page in sharepoint 2010.
how can i do that?
I deployed ASP.Net 4.0 app on ISS, I wanted to set the session time out value to unlimited or any admisible maximum value. How to achieve that?
i want to redirect the user from ?????the ??AuthenticateRequest in the global.asax file when session timeout ?happens.
is it possible.