FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » standard easy way to set up a registration/logon cookie?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: standard easy way to set up a registration/logon cookie? [message #176353 is a reply to message #176347] Tue, 27 December 2011 21:06 Go to previous message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma:
Senior Member
r(dot)mariotti(at)fdcx(dot)net wrote:
> On Mon, 26 Dec 2011 17:23:08 +0000, The Natural Philosopher
> <tnp(at)invalid(dot)invalid> 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?
>>
>
> You might want to consider looking at what's available as a CMS
> specific for forums. You would search network.acquia.com or
> drupal.org for plug in solutions.
> Just my $.02 worth.

I might, except for two things.

I can code faster than I can discover how other peoples abortions work.

The amount of probes on my site already looking for proprietary solution
code that isn't there because I haven't installed any leads me to
believe that other peoples' solutions (unless you understand them fully)
are a massive invitation to hackers:

At least this way there is very little I need to guard against beyond
the stock SQL injection attacks and the search for unguarded scannable
directories.

It is the case that as with so many things I have implemented in real
lie, buying someone else's solution and learning how to make it do the
70% of what you want that it is capable of doing, is often more time
consuming than writing the 99% solution yourself.

When trying to make an electric toy van, it ill behoves one to start
with a train set..
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: cheap, discount nike air max shoes, paypal payment, free shipping
Next Topic: multi-dimensional array sorting by index (like a table)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Nov 25 23:22:42 GMT 2024

Total time taken to generate the page: 0.04263 seconds