homepage Welcome to WebmasterWorld Guest from 54.167.75.155
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Password in the url
toolman




msg:598210
 11:21 pm on Aug 11, 2001 (gmt 0)

If I have a protected directory and say, I'm redirecting people to a page in that protected directory after they pay...can I put the password in the url so they just enter the page without a prompt?

 

Xoc




msg:598211
 12:17 am on Aug 12, 2001 (gmt 0)

I wouldn't recommend it. One reason is that anything in the URL goes into the Browser's history list. That means that if someone logs on at a public library, the URL with the password would be available for anyone else who came along to use. Or if someone left their machine unattended for a few minutes, you could look at the history list. People also email or post URLs to one another. The site would quickly become open.

One solution, widely used, is to store a cookie on the user's machine that gives them access. If the cookie isn't present, then they have to log in. Notice that this is used here at WMW.

ggrot




msg:598212
 10:49 pm on Aug 12, 2001 (gmt 0)

Cookies are resident in the browser too - it wouldn't solve your library problem.

Xoc




msg:598213
 10:53 pm on Aug 12, 2001 (gmt 0)

True, it doesn't solve the library problem. But is does solve several of the others.

Air




msg:598214
 5:05 am on Aug 13, 2001 (gmt 0)

>it wouldn't solve your library problem

True, unless the cookie is made to crumble at the end of the session.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
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