Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #16598

Re: Automatically doing something if logged in

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Arno Welzel <usenet@arnowelzel.de>
Newsgroups comp.lang.php
Subject Re: Automatically doing something if logged in
Date Tue, 23 Feb 2016 08:10:03 +0100
Lines 22
Message-ID <56CC05CB.2060001@arnowelzel.de> (permalink)
References <1b712b26-1665-45f9-9017-1dcf9e8bfbcb@googlegroups.com> <dj15eeF12e3U1@mid.individual.net>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 7bit
X-Trace individual.net N1Q1T/w7wShtINt5Y7W56ANlQU20XaLVK6hqn4TtT1KgF4n2yl
Cancel-Lock sha1:OX2Ln+1qCvD8/bcxDutcA/Uz0Fs=
In-Reply-To <dj15eeF12e3U1@mid.individual.net>
Xref csiph.com comp.lang.php:16598

Show key headers only | View raw


J.O. Aho schrieb am 2016-02-22 um 20:21:

> On 02/22/2016 07:02 PM, bit-naughty@hotmail.com wrote:
>> Hi,
>> So say there's a forum site, and if there' been a reply to a post I've made, it sends me a link to that thread. If I click on it, and I've remained logged in when I was there last, then it *automatically takes me to that thread*. If I wasn't, then it shows me a Login box - when I log in it *automatically takes me to that thread*, but if I just went to the homepage NOT clicking on any email link, and I THEN log in, then it shows me something else (like "My homepage" or something), NOT that thread.
>> It's quite late, am I making sense? :)
>> How is this pulled off?
> 
> If you want things to happen "automagically", then you need to think
> more than just PHP, add some javascript (there are loads of good
> frameworks) and use websockets.

This is not required at all. Just add the desired target after the login
as a parameter to the login page or set a cookie which will be used by
the login page to redirect to the target after successful login etc..


-- 
Arno Welzel
http://arnowelzel.de
http://de-rec-fahrrad.de
http://fahrradzukunft.de

Back to comp.lang.php | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Automatically doing something if logged in bit-naughty@hotmail.com - 2016-02-22 10:02 -0800
  Re: Automatically doing something if logged in Jerry Stuckle <jstucklex@attglobal.net> - 2016-02-22 14:04 -0500
  Re: Automatically doing something if logged in "J.O. Aho" <user@example.net> - 2016-02-22 20:21 +0100
    Re: Automatically doing something if logged in Jerry Stuckle <jstucklex@attglobal.net> - 2016-02-22 14:52 -0500
      Re: Automatically doing something if logged in "J.O. Aho" <user@example.net> - 2016-02-23 06:58 +0100
    Re: Automatically doing something if logged in Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-02-22 22:25 +0100
      Re: Automatically doing something if logged in "J.O. Aho" <user@example.net> - 2016-02-23 07:04 +0100
        Re: Automatically doing something if logged in Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-02-23 08:31 +0100
      Re: Automatically doing something if logged in Arno Welzel <usenet@arnowelzel.de> - 2016-02-23 08:24 +0100
        Re: Automatically doing something if logged in Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-02-23 08:46 +0100
          Re: Automatically doing something if logged in Arno Welzel <usenet@arnowelzel.de> - 2016-02-23 11:36 +0100
            Re: Automatically doing something if logged in Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-02-23 21:02 +0100
    Re: Automatically doing something if logged in Arno Welzel <usenet@arnowelzel.de> - 2016-02-23 08:10 +0100

csiph-web