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 11:52

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.

--
Neil Trigger
Magic2k Managing Director
http://www.magic2k.com
http://www.magic2k.co.uk
"qwert" <qwert@eribus.ch> wrote in message
news:432e6dd8$1_3@news.bluewin.ch...
> Neil Trigger schrieb:
>> Thanks Steve, the generated link was
>> http://www.magic2k.com/errorpages/404.php and the expected link is almost
>> irrelevant as it does it on ALL links...
>>
>> The expected link should be the last page that the user visited before
>> getting an error, with the exception of some of the login pages where I
>> defined $not_here='yes'; so that it disables the writing of the address
>> to the session.
>>
>> The session definition worked fine until I needed to login, but it seems
>> that although it's still writing it (and I don't know why it should be
>> still writing) it seems to be hitting my htaccess file to get the error
>> page link above.
>>
>> I think it might have something to do with skipping the writing of the
>> session but i don't know why.
>>
>> I think this will be a really cool script once it's bug free.
>>
> so to summarize (correct me if i'm wrong):
>
> If a visitor on your site clicks on a link to an article, you check (in
> the articlescript) if this visitor is a logged in user ... if he is, you
> display the article but if he isn't, you redirect him to the loginpage ...
> after he has logged in, you want to provide a link to this visitor which
> takes him back to the article he has requested in the beginning ... right
> ?

 

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

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