Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: HTML
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 12-Jul-12 2:34am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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.
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

You can use cookies for state management.
http://www.w3schools.com/js/js_cookies.asp[^]
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

client can't support session, please use cookies
cookie
  Permalink  

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

  Print Answers RSS
0 George Jonsson 215
1 Kornfeld Eliyahu Peter 169
2 Zoltán Zörgő 139
3 PIEBALDconsult 130
4 OriginalGriff 120
0 OriginalGriff 6,165
1 DamithSL 4,658
2 Maciej Los 4,107
3 Kornfeld Eliyahu Peter 3,649
4 Sergey Alexandrovich Kryukov 3,342


Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 15 Jul 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100