Click here to Skip to main content
11,496,146 members (692 online)
The site is currently in read-only mode for maintenance. Posting of new items will be available again shortly.
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,java etc
Posted 12-Jul-12 2:34am
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.
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.


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:[^]

Cookies should really only contain very slight data points such as keys or tokens and NOT datasets or any other heavy object.
You can use cookies for state management.[^]
client can't support session, please use cookies

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

  Print Answers RSS
0 RyanDev 230
1 Sergey Alexandrovich Kryukov 114
2 Richard Deeming 100
3 OriginalGriff 89
4 Mostafa Asaduzzaman 59
0 Sergey Alexandrovich Kryukov 10,401
1 OriginalGriff 8,910
2 Sascha Lefèvre 3,899
3 Maciej Los 3,422
4 Richard Deeming 2,600

Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 15 Jul 2012
Copyright © CodeProject, 1999-2015
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