Hi I have a custom web server written for a lightweight need. Now I need the HTTP users to have session support. Any guidelines would be helpful. Note that I’m not using any servlets.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Its a quite compilcated thing actually, and unless its not a homework or something, this is exactly a kind of things when you should take a step back and ask yourself “do I really need a custom web server here, maybe Jetty/Windstone (just to name a couple) should be enough” 🙂
Today you need session, tomorrow you’ll need some security stuff and voila, you have a full custom web server 🙂
If you want to stick to java standards you should consider interface
HttpSession
http://docs.oracle.com/javaee/1.3/api/javax/servlet/http/HttpSession.html
Yet another source I think can help you is
Different Session management techniques
I hope this helps