You are here: Re: Address bar as session « PHP SQL « IT news, forums, messages
Re: Address bar as session

Posted by Neil Trigger on 09/19/05 19:11

I can't redirect the user to the login page because some users will not be
able to login and some members will not have right permission to access
certain pages.

Also it's not always just the articles so referer won't work.

--
Neil Trigger
Magic2k Managing Director
http://www.magic2k.com
http://www.magic2k.co.uk
"qwert" <qwert@eribus.ch> wrote in message
news:432e8e43_2@news.bluewin.ch...
> Neil Trigger schrieb:
>> Yes... almost right.
>>
>> When a user clicks on any page, I need to check firstly the permissions
>> of that page and then cross refernece it with thether they are logged in.
>> Then if they ae not logged in and the page requires them to be then they
>> get redirected.
>>
>> Once redirected, they decide to login and on the login page they have a
>> link saying "go back to where you were" or something similar, which takes
>> them back to the page that they were originally redirected away from.
>>
>> I have the session script in the top.php include which goes on every page
>> of the site. I also have in that script a way to disable it so that pages
>> like the login script and error pages do not get recognised and do not
>> interfere with the session being written.
>>
>> Still baffles me though.
>>
>
> ok, but why don't you just use $_SERVER['referer'] when you check the
> permissions and decide to rediredt the user to a loginpage ?
> this way the user would get back to the page where he click on the link to
> the article (but redirected him to the loginpage) ...
> this way the visitor just had to reclick the link to the article to view
> it (since he is now logged in) ...
>
> i think what you want is that the link you provide after the user is
> logged in takes the user directly to the article ... hmm ...
> isn't there a way to catch the link which brought the user to this page ..
> i'll check that out and tell you about my results later ...
>
> -----
> qwert

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация