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

Top 5 Contributors of the Month
Ava Aiden
Imran Ghani
Thomas Shaw

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.

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

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   


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

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


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

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