.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

how can create Session

Posted By: Sonalika     Posted Date: December 23, 2008    Points:2   Category :ASP.Net
how can create Session for Login page.

Responses
Author: Rahul             
Posted Date: December 23, 2008     Points: 5   

Hi,
Session will be automatically created by IIS when a Web page(ASP.Net) from the application is requested by a user. However you can able to know the Session id by requesting Session objects "SessionId" property like this.


string strSessionId = Session.SessionID;//This will give you unique session ID.


Author: Athira Sreejith             
Posted Date: February 24, 2009     Points: 5   

Hi..


Session["Username"] = txtUsername.Text.Trim();
Session["Password"]=txtPassword.text;

Author: jay             
Posted Date: February 19, 2010     Points: 5   

session.add["un","pwd"]



Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend