C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




sessions


Posted Date: 30 Aug 2008      Total Responses: 1

Posted By: Musturu Thippa Reddy       Member Level: Silver     Points: 1



hi tp all

now i am doing on project. the project name is jobportal .In that we have two users one is jobseeker and another is Employee.so i need to give some accessbility to jobseeker it means if he enter into employee module then logout and ask the employee user name and password .how it can done using session or cookies?plz explain with details.





Responses

Author: Pradeep Kumar Chaudhary    31 Aug 2008Member Level: GoldRating:     Points: 6

You create a new cookie by adding a cookie to the Response.Cookies collection.The Response.Cookie collection contains all the cookies sent to the web server to the web browser.

You can't really use a cookie to store a shopping cart. A cookie is just too small and too simple. To enable you to work around the limitations of the cookies, the ASP.NET Framework supports a feature called Session state.
Like cookies, items stored in Session state to store user preferences or other user-specific data across multiple page requests.
Unlike cookies, Session state has no size limitations. If you had a compelling need, you could store gigabytes of data in the Session state.
Furthermore, unlike cookies, Session state can represent more complex objects than simple strings of text. You can store any object in Session state. For example, you can store a DataSet or a custom shopping cart object in Session state.
You add items to Session state by using the Session object.

Regards,
Pradeep



Post Reply
You must Sign In to post a response.
Next : Killing a particular excel process using procedd id
Previous : Problem with invoking a delegate with async callback
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use