Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
i am using the ASPNETDB database and AspNetSqlMembershipProvider, and IDE controls to deal with the users, such as Loging control....

The problem I have is: When i uploaded my site to hosting it does not save login data, and all that I try to login to a particular page is transformative to the login page (sometimes is transformative in a minute and sometimes three minutes, there is no specific time for the session) even if i checked (remember me), make sure I have a browser saves cookei, and also confirmed that cookie is saved from the site when i check (remember me), but to no avail, and every minute be logged out of the site and transferring to the login page.

my site works as required on the local server from within the VS 2010, and remains held logged throughout the session, in the absence of selection (remember me), and remains held log for the next time also in which case i check (remember me).


any proposal ... thanks in advance.
Posted 20-Feb-13 6:10am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Basically, you would need to use a cookie.

People explained the technique in many places. For example:
http://stackoverflow.com/questions/3118717/how-to-handle-remember-me-in-the-asp-net-membership-provider[^].

Want to find other code samples? See http://bit.ly/YAUv8o[^].

My concern is different: you should warn the user about the danger of storing log on information in a cookie on a local computer. If you use proper authentication, you never store any passwords anywhere (you can store cryptographic hash functions of passwords, but it makes cryptographically infeasible to restore the original password). Storing the password on local computer creates sensitive data which can be captures if a client computer is stolen or cracked in some way. So, this decision should be optional; and the user should be warned, to be aware and careful about such things. Such solution should never be a default.

—SA
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

I found the solution on this page[^].
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Suvendu Shekhar Giri 265
1 Sergey Alexandrovich Kryukov 235
2 Andy Lanng 185
3 PIEBALDconsult 180
4 Black_Rose 130
0 Sergey Alexandrovich Kryukov 6,360
1 OriginalGriff 5,878
2 Peter Leow 2,514
3 Maciej Los 2,263
4 Abhinav S 2,249


Advertise | Privacy | Mobile
Web03 | 2.8.150414.1 | Last Updated 24 Feb 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100