HomeHome  FAQFAQ  SearchSearch  RegisterRegister  MemberlistMemberlist  UsergroupsUsergroups  Log in  

Share | 

 Session State in C#

Go down 


Number of posts : 228
Age : 34
Registration date : 2007-03-05

PostSubject: Session State in C#   Thu Mar 15, 2007 2:01 pm

Assign and Retrieve Session

//Assign a value to the myvariable session variable.
Session["myvariable"] = "somevalue";

//Retrieve the value of the myvariable session variable.
string myString;
if (Session["myvariable"] != null)
myString = (string)Session["myvariable"];
Back to top Go down
View user profile
Session State in C#
Back to top 
Page 1 of 1
 Similar topics
» Selenium RC; Permission denied on session.([error] Element not found ")
» Could not start Selenium session: Connection timed out: connect
» Selenium not able to open browser session
» Clearing selenium session
» How to test the session timeout of a web application

Permissions in this forum:You cannot reply to topics in this forum
 :: Programming Languages :: C#-
Jump to: