Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #4145
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | Allodoxaphobia <knock_yourself_out@example.net> |
| Newsgroups | comp.lang.php |
| Subject | Re: standard easy way to set up a registration/logon cookie? |
| Date | 26 Dec 2011 21:40:30 GMT |
| Lines | 25 |
| Message-ID | <slrnjfhqd2.1d7h.knock_yourself_out@shell.config.com> (permalink) |
| References | <jdaaht$amv$1@news.albasani.net> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Transfer-Encoding | 7bit |
| X-Trace | individual.net ZeR9q+b7ISsAs+/dTyTYjwS9cKAyObsPDYaq73OkW8/nYjKwwp |
| Cancel-Lock | sha1:Lk3iu0LcV4ivkgf84D8V8ZddQHg= |
| User-Agent | slrn/0.9.9p1 (FreeBSD) |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.php:4145 |
Show key headers only | View raw
On Mon, 26 Dec 2011 17:23:08 +0000, The Natural Philosopher wrote: > Someone wants to set up a specialist discussion site: I want to keep it > simple so I don't want to use a pre packaged solution. > > Essentially he needs to let users comment on topics, and have some > control over spam and abuse, hence registration and a name/password combo. > > But given the technical lack of sophistication of the target audience, > persistent cookies would be a good thing to allow them to stay logged in > indefinitely (or not if the desire) > > I'd like to hand out some random cookie when they register, or log in > and stick it in the database, together with a time value which, if they > don't want to 'persist' would be ignored if it was out of date. > > Then write a simple PHP module that says 'if the cookie is valid, you > are Joe Bloggs and you can post away' else if not, throw them into a > login/registration screen. > > Is 'sessions' any real help here? Or is it just easier to set and > retrieve a cookie at a more basic level? So, you're expecting (or, demanding?) same computer::same person? Jonesy
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
standard easy way to set up a registration/logon cookie? The Natural Philosopher <tnp@invalid.invalid> - 2011-12-26 17:23 +0000
Re: standard easy way to set up a registration/logon cookie? houghi <houghi@houghi.org.invalid> - 2011-12-26 18:50 +0100
Re: standard easy way to set up a registration/logon cookie? Allodoxaphobia <knock_yourself_out@example.net> - 2011-12-26 21:40 +0000
Re: standard easy way to set up a registration/logon cookie? houghi <houghi@houghi.org.invalid> - 2011-12-27 18:47 +0100
Re: standard easy way to set up a registration/logon cookie? The Natural Philosopher <tnp@invalid.invalid> - 2011-12-27 20:59 +0000
Re: standard easy way to set up a registration/logon cookie? The Natural Philosopher <tnp@invalid.invalid> - 2011-12-27 20:49 +0000
Re: standard easy way to set up a registration/logon cookie? r.mariotti@fdcx.net - 2011-12-26 18:00 -0500
Re: standard easy way to set up a registration/logon cookie? The Natural Philosopher <tnp@invalid.invalid> - 2011-12-27 21:06 +0000
csiph-web