Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "J.O. Aho" Newsgroups: comp.lang.php Subject: Re: Automatically doing something if logged in Date: Mon, 22 Feb 2016 20:21:50 +0100 Lines: 14 Message-ID: References: <1b712b26-1665-45f9-9017-1dcf9e8bfbcb@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: individual.net cLBJ41t1UNJbI/S3RYQ/BgI5MQUpJcfgwTyyKsC8U3NdKn/P9C Cancel-Lock: sha1:zcEWd6ku+kfxm+o86Lg4Vo8q7QY= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 In-Reply-To: <1b712b26-1665-45f9-9017-1dcf9e8bfbcb@googlegroups.com> Xref: csiph.com comp.lang.php:16593 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. -- //Aho