User Gets Logout Automatically Even Working Actively In Web Application?
Feb 26, 2010I am working in ASp.net web application, where user will be asked to give interview.
View 3 RepliesI am working in ASp.net web application, where user will be asked to give interview.
View 3 RepliesI created timecard for a website and I would like to automatically clock out the user everytime when user logout or close the website. Is there a control for that? And if yes, where do i have to put he code at?? I think it should be in the code behind of master page... and on the Page_Load function
View 1 RepliesBelow code is working fine, it will logout user in after 1 minute, since I have another login control in Home page, I was trying to add another line:
<forms loginUrl="Default.aspx" timeout="1"/>, but gives me error: The element <forms> may only appear once in this section,
so the timeout in the webconfig can only have one page for the function?
[Code]....
I have an ASP.NEt website and I want to know how can determine how long the website was idle (no activity from the user) and then based on that timer I want to automatically logout and redirect to default.aspx?
View 1 RepliesI want to logout from facebook automatically when i am logging out from my website..
I have integrated facebook authentication in my website using your code.
But I am not able to logout from facebook once login...
I have 2 master pages Default.aspx is from Site.Master and some more pages that are from Admin.Master, I have used the code that to prevent the user from going back to previous pages after logout.
 Here is my code
function preventBack()
{
window.history.forward();
}
setTimeout("preventBack()", 0);
window.onunload = function () { null };
The problem I am facing Admin.
Master page i.e I have Home.aspx, AboutUs.aspx,Admin.aspx,AddItem.aspx I was unable to navigate between those pages also. how to solve this. I have tried other methods also, but still facing same problem.Â
Is it possible to perform user management (store user info, login , logout etc) without using session or cookie?
View 3 Repliesafter user loggs out if he clicks the browsers back button then users had to be redirected to login page
doenst matter how many time the user clicks on back button take him to login page
how to achieve this let me know
my wish is after 60 minutes and user's inactivity, the user will be redirect to Login.aspx page.
View 1 RepliesI used Membership provider in my application. when i am creating new user by filling the details and adding role after the submit button it force the current user to logout and re-login using the current user which I created.Â
Like as a admin I created the user irshad, it admin to logout and again re-logged in with the current user irshad.
When the user logs out of the page and does not close Internet Explorer, and again try to access the page either through favorite link or by entering URL, they are automatically logged into the page again.We want this NOT to happen. We want the user to always have to re-enter all Login data on the main login.aspxI have validated session correctly, even though this problem continueonly my system. Other system workingcorrectly. I think something browser settings problem.
View 3 Repliesgive me a working snippet for logout..I'm fed up of using all session.abondon() bla bla.. Even after logout wen i click back button i can view my page.. How to over come this..
View 14 RepliesWhen I click signout I am redirecting to home page but when I click browser back button it is redirecting to previous page how to eliminate this......
View 1 Repliesthe web application was designed using asp.net 4.0/C# with form authentication .
logout is not working. After deleting web history, cookies, passwords, then also logout is not working.
My code is
[Code]....
when i log out, i have this problemwhen i enter the authorized section, its still keep showing me the page, only when i refresh it,it brings me back to login page.for example,i logged in as manager,and then i logged out.when i enter the same authorized managment page it keeps showing me content, but when i refresh it brings me back to the default login page.
View 8 RepliesThe user is geeting following error while uploading a file to the asp.net page. But when I try to upload the same file, I don't get this error. Is there a way to troubleshoot this problem? Also is there a way to capture exact error? I tried to have custom error page.
Runtime error
Description
Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File --><configuration> <system.web> <customErrors mode="Off"/> </system.web></configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File --><configuration> <system.web> <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/> </system.web></configuration>
After login when i logout after 10 minutes my web application gives error (Hosted on iis):
Site URL is www.shoppersonlinecub.com  login Id :admin@gmail.com
And Password: 1234Â ( on logout it gives error).
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
Unable to understand the error.Â
I am working on a web application which is designed as master and web content pages. I designed login and logout for the application. When logout is clicked, it will call a method to clear the session variables and also some other methods which will clear some data in the oracle tables.
But if the user is clicking on the internet explorer close button, then there is no way to know that the application is closed. For this I got a link where we can write a javascript method and find the unload of the page and execute all of these but pages will be loading and unloading each time user navigates inside the application and I cannot depend on unloading the page.
how can I do all the process of clearing session and other things when user clicks close button of internet explorer.
Also this application needs to be holding the session for more than 1 or 2 hours, so session should not expire till logout is clicked or close button is pressed.
how can i do this? At the moment a user's session is lost whenever they close the browser, but sites like facebook have a 'keep me logged in' option. How does this work exactly and are there any well known ways to do this in .net? i understand part of the way it works is that they store the username in a cookie.
View 4 RepliesIn the site I am building we have standard users and superusers. A superuser can delete another user from the system and this should result in that user being logged out (if he/she is currently logged in). We use the Membership provider. Or actually the superuser doesn´t delete the other user completely but instead sets his/her as inActive by following code:
[code]...
But, that should not matter... What I want to know is how to make the affected user being logged out. I don´t need a popup or anything to be shown to the other user that he/she is just logged out, it is enough to check if that user is logged in when he/she tries to move to another page on my site.
Need the code for the login /logout in my sample project and how to attin logout in the all pages. dont mistake me as i am learning (fresher) the asp.net 2005
View 2 RepliesI need to disallow the user from clicking the back button after they have login to the web site.
I have to stop them from going back after thay have logout from the web site.
I find out online that this can be done
but once the javascript function is turn off it does not work.
[Code]....
Is there any way to really stop go back function in the above situation? I wonder how the bank commercial web site handle this kind of situation?
i'm using ASP.NET membership for a silverlight application that makes use of Wcf Ria Services.
my problem is that i don't want multiple logins on the same account and i need to logout the user when he logs in on another machine. (I don't want the account to be used by many people at the same time, and the last who logs in must kick out everyone else)
if a user wants to clear their personal information from a page after clicking on a button that they be re-directed to the ASP Login page. This code needs to be developed using Java Script because I want the user to confirm with a confirmation box that they intended to clear their info. I have found resources on MS that pointed to referencing the "System Web Extension" within the Web Config file shown below, which enables Java Script to be able to reference the Authentication Service classes. I am also calling the function show_confirm in the button onclick event to process the message box response.
I also need to redirect a user back to the Login page within this same show_confirm() function without pointing directly to the URL, but instead to the folder where the page is locateded like in VB Server Redirect if possible.
The error message I receive when I run this code is: Microsoft JScript runtime error: 'sys' is undefined.
Shawn
[Code]....
[Code]....
I facing a problem here. how can I make the create user wizard category all the new user become normal user role? I have created 2 role which is Manager and Normal User. Normal User can't view the Manager page. But after i create a new user account, i can view manager and normal user page. I want to make all the new member registration will be normal user role?
View 6 Replies