Re: Check User session before display form search results
- From: Teaser <javanetpak@xxxxxxxxx>
- Date: 24 Apr 2007 22:09:00 -0700
On Mar 17, 9:00 pm, "Paul_E21MEDIA" <p...@xxxxxxxxxxxx> wrote:
Hi,
I have a search form on my home page. However, I only wanted logged in
users to see the search results. It currently allows anyone to view
the search results. Have tried using something like:
If Session("UserID") = 0 Then response.redirect("/notloggedin.asp")
<form action="searchresult.asp" method="get" >
However, it only redirects to the login page, each time someone tries
to visit the site. I still want non members to view the home page,
just not the search results unless they sign up and then log in.
I think the coorect statement is
If ltrim(Session("UserID")) = "" Then response.redirect("/
notloggedin.asp")
.
- Prev by Date: ActiveX component can't create object Scripting.FileSystemObject'
- Next by Date: Question on form encryption
- Previous by thread: ActiveX component can't create object Scripting.FileSystemObject'
- Next by thread: Question on form encryption
- Index(es):
Relevant Pages
|