Please enable JavaScript to view this site.

Navigation: Advanced topics > Events > Sample events > Misc

Save user data in session variables

Scroll Prev Next More

 

Often you need to save data from the login table in session variables for later use. For this purpose, you can use the AfterSuccessfulLogin event.

 

 

XSession.Session["FirstName"] = data["FirstName"];

 

Then you can use XSession.Session["FirstName"]as the default value of any field or in other events.

See also:

Session keys

ASPRunner.NET session variables

Session table variables in the WHERE clauses

Speed up data entry using events

Limit number of records users can add