Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #16596
| From | "J.O. Aho" <user@example.net> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: Automatically doing something if logged in |
| Date | 2016-02-23 06:58 +0100 |
| Message-ID | <dj2an9F9nq9U1@mid.individual.net> (permalink) |
| References | <1b712b26-1665-45f9-9017-1dcf9e8bfbcb@googlegroups.com> <dj15eeF12e3U1@mid.individual.net> <nafoop$e43$1@jstuckle.eternal-september.org> |
On 02/22/2016 08:52 PM, Jerry Stuckle wrote: > On 2/22/2016 2:21 PM, J.O. Aho wrote: >> 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. >> >> > > Actually, it can be done without a lot of trouble in PHP with the > appropriate tests and redirects. No javascript, websockets or anything > else is required. > You are right. I was thinking a step further, where someone replied when you was already logged in and was already at page X and needed a redirect to page Y without the request of an user action. -- //Aho
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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