Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Check User session before display form search results

1 view
Skip to first unread message

Paul_E21MEDIA

unread,
Mar 17, 2007, 12:00:35 PM3/17/07
to
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.

Teaser

unread,
Apr 25, 2007, 1:09:00 AM4/25/07
to

I think the coorect statement is

If ltrim(Session("UserID")) = "" Then response.redirect("/
notloggedin.asp")

0 new messages