Current location: Hot Scripts Forums » Programming Languages » PHP » Directing link to password protected page


Directing link to password protected page

Reply
  #1 (permalink)  
Old 06-15-04, 12:14 AM
brb brb is offline
New Member
 
Join Date: Jun 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Directing link to password protected page

Question: My office is developing a password-protected LAMP-based site with thousands of pages. I'd like to be able to send an email to a client directing them to a particular page within the site. Assuming they are not already logged in, what happens is that they are directed to the login page, then, regardless of what link I put in the email, they end up at the default start page after the login.

Is there a way that, when clicking on a link to an internal page on a password protected site, the user can be sent directly to that page after the login?

Thanks,

BRB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 06-15-04, 03:30 AM
NeverMind's Avatar
NeverMind NeverMind is offline
Community VIP
 
Join Date: Aug 2003
Location: K.S.A
Posts: 2,257
Thanks: 0
Thanked 2 Times in 1 Post
it can be done with $_SERVER['HTTP_REFERER'] but it will not always work !!

you can use header("Locatios: $_SERVER[HTTP_REFERER]");
which will redierct back to the referer page..
but this variable can be spoofed!!
__________________
PHPSimplicity
We don't need a reason to help people - Zidane [FF9]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 06-15-04, 05:10 AM
Worm's Avatar
Worm Worm is offline
Newbie Coder
 
Join Date: Jun 2004
Location: Germany, Frankfurt am Main
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by brb
Question: My office is developing a password-protected LAMP-based site with thousands of pages. I'd like to be able to send an email to a client directing them to a particular page within the site. Assuming they are not already logged in, what happens is that they are directed to the login page, then, regardless of what link I put in the email, they end up at the default start page after the login.

Is there a way that, when clicking on a link to an internal page on a password protected site, the user can be sent directly to that page after the login?

Thanks,

BRB
Hi !

I think what you are asking for is not a question of a PHP or MySQL Script but a Webserver Configuration Problem. You can protect directories by .htaccess which will force anyone trying to access sites inside this directory to authenticate .htaccess.


Greetings
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Classified Ads skipper23 Perl 3 11-22-05 03:22 AM
link clicked, scrolls down page eq1987 Script Requests 1 05-16-04 01:59 PM
page browsing problem mivec PHP 3 04-17-04 04:43 AM
Classified Ads skipper23 Perl 2 12-30-03 04:43 AM
Create a next page link when there are too many records to be display in a webpage Han84 ASP 0 10-19-03 11:32 PM


All times are GMT -5. The time now is 12:31 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.