homepage Welcome to WebmasterWorld Guest from 54.163.139.36
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / WebmasterWorld / New To Web Development
Forum Library, Charter, Moderators: brotherhood of lan & mack

New To Web Development Forum

    
prevent bookmarking
shani

10+ Year Member



 
Msg#: 1608 posted 8:26 am on Aug 13, 2004 (gmt 0)

how do i prevnt some from bookmark a page in asp or vb script?

 

topr8

WebmasterWorld Senior Member topr8 us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 1608 posted 8:39 am on Aug 13, 2004 (gmt 0)

you can't stop someone bookmarking a page.

nobody

10+ Year Member



 
Msg#: 1608 posted 10:12 am on Aug 13, 2004 (gmt 0)

you could give the url some kind of session id which expires after a certain amount of time.

Lord Majestic

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 1608 posted 10:23 am on Aug 13, 2004 (gmt 0)

how do i prevnt some from bookmark a page in asp or vb script?

Why?

shani

10+ Year Member



 
Msg#: 1608 posted 10:38 am on Aug 16, 2004 (gmt 0)

Hi!

The problem is that pages after the login page is been bookmarked. Want I need to happen,is to make all pages after the login page unattainable, so if a user needs to view a page he would have to login again.

Can it be done?

Lord Majestic

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 1608 posted 10:52 am on Aug 16, 2004 (gmt 0)

Want I need to happen,is to make all pages after the login page unattainable, so if a user needs to view a page he would have to login again.

Per se bookmarking is totally under control of the end user - you can have some funny games with POST requests which are hard (if possible) to bookmark, but this is not good way of solving your problem.

If you want to allow access to only authenticated users then your pages after login page should check for login cookie(s) set by the login page, if cookie(s) not set then ask to login then show content relevant to the page originally requested.

shani

10+ Year Member



 
Msg#: 1608 posted 11:34 am on Aug 16, 2004 (gmt 0)

Can this be done in asp?
And it wud not be necessary for the browser to allow session cookies?

Lord Majestic

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 1608 posted 11:56 am on Aug 16, 2004 (gmt 0)

Yes it can be done in ASP, the logic can be pretty simple:

1. login page - check username/password against database of allowed users, and if all matched then set cookie that will indicate that this user is authorised.

2. content page - if cookie is not set, then redirect to login, otherwise show content.

shani

10+ Year Member



 
Msg#: 1608 posted 2:44 pm on Aug 16, 2004 (gmt 0)

Thanks.
I'll try it out, and c if it works.

Adrian2k4

10+ Year Member



 
Msg#: 1608 posted 7:56 pm on Aug 25, 2004 (gmt 0)

or you could try the apache .htaccess files (if your server runns apache - probably dosn't since your in to asp)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / New To Web Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved