1

I have a Stripes website and I will have one page that will get lots of hits, and I was asked to make sure Stripes does not create a user session when someone navigates to this page.

Is there a way to make sure does not create a session when a user goes to a certain action?

Joe
  • 7,922
  • 18
  • 54
  • 83
  • 1
    Have you tried including `<%@ page session="false" %>` in the JSP? – Chakra Jul 10 '12 at 14:25
  • Yes. It has already created a session before it gets to the page. – Joe Jul 11 '12 at 14:38
  • The session is created by the servlet container. Why do you not want the user to have a session? You don't have to *do* anything with it. Is it an issue of preventing any cookies from being sent out? – Pointy Jul 12 '12 at 14:40
  • I believe I was asked to prevent sessions from being made as a memory issue. I do not know if the my boss is accurate that the creation of the sessions will drain resources. – Joe Jul 12 '12 at 16:58

1 Answers1

1

You need to create an Interceptor and when ever action is been called for which you don't want to create session.. just look if response have 'SET-Cookie' in header, If it is remove that header content. I hope your problem will get solved.

regards
kishor

Kishor Sharma
  • 599
  • 8
  • 15