Hi! I have building an application that requires a user login. The user name and password are stored in a database table. On login, I call a stored procedure that confirms the user name and password and then directs the user to the MyAccounts page. The problem is, I am new to session states and passing session variables. How do I pass the username and information to the my accounts page and keep the session open until the user closes the application or logs out?
All you need to do is establish the session variable then assign th value to this variable. The session variable can be accessible until the user closes the browser or after 20 min of inactivity (default, but configurable). MSDN (Microsoft) has a really good article on this with examples.