Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a website in Html.

can someone provide some assist on how to creates sessions in html.

or what i have to use if i don't want to use any programming language like asp.net,java etc
Posted

There is nothing like sessions in HTML(as far as i know). if you need to pass data between pages then that can only be done by using POST or GET methods of the HTML.
 
Share this answer
 
You cant create a session in the same way as ASP.Net session state just using html. If you need session type pointers then you may be able to use a cookie to determin what page / item etc the user has accessed.

Update

Be advised on using cookies for sessions. Do not store large amounts of data in a cookie. This will cause performance issues as each request will cause the cookie to be sent to and from the server.

Also there are limits to size, number etc. A good post is below:

http://superuser.com/questions/97625/what-is-the-maximum-size-of-a-cookie-and-how-many-can-be-stored-in-a-browser-fo[^]

Cookies should really only contain very slight data points such as keys or tokens and NOT datasets or any other heavy object.
 
Share this answer
 
v2
You can use cookies for state management.
http://www.w3schools.com/js/js_cookies.asp[^]
 
Share this answer
 
client can't support session, please use cookies
cookie
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900