View Single Post
  #1 (permalink)  
Old November 23rd, 2004, 07:05 PM
ndanger ndanger is offline
Registered User
Join Date: Nov 2004
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default JSP string find characters

I have a JSP login form that creates a session after a successful login.
I want to make sure that the session is ended when a user either closes their browser, or leaves my site. (if they bookmark the site I want to force a login even if the session hasn't timed out)

The way that I want to do this is by looking at the referring page:
<%request.getHeader("referer");%> and comparing it to my Web URL

All that I want to find out is that the '' exists in the 'request.getHeader("referer");'

I have seen the command 'FindNoCase(substring, string [, start ])' as a Cold Fusion function, but I can't find anything in JSP that does the same thing.

Any help would be greatly appreciated


Reply With Quote