Category: >> ASP/VB Code >> Allow access to a page only once Bookmark and Share

<< lastnext >>

Snippet Name: Allow access to a page only once

Description: An example of using cookies to allow viewing a page only one time.

Also see:
» Check if current session is using ...

Comment: (none)

Language: VB
Highlight Mode: VB
Last Modified: December 03rd, 2010

response.buffer =true
check = request.cookies("read")
if check = "" then
  response.write "You may only view this page once." & "<p>"
  response.cookies("read") = "ok"
  response.write "You have already viewed this page, so you cannot see it again." & "<p>"
end if
There haven't been any comments added for this snippet yet. You may add one if you like.  Add a comment 
© | users online: 5