Yes you are right.
If it is an html page it does not create a session.
I had a index.jsp which just included response.sendRedirect("xxx.html")
then I deleted index.jsp file and renamed xxx.html as index.html then it does not create a session now.
But I still have my problem. When you call a
jsp file tomcat creates a session and a cookie called JSESSIONID for you. Can I override this behaviour and have a cookie named as sth else which I will define in my code?
I mean I can still create a new cookie named as sth else but when getSession method is called always JSESSIONID's value will be returned.
I would like to get my custom cookie's value when I call getSession method.
Do you have any idea about how to do that?
Thanks.
aysan