NYCPHP Meetup

[nycphp-talk] Login schemes.

Anthony Wlodarski aw at sap8.com
Thu Aug 16 13:48:45 EDT 2007


I was thinking about login schemes so I had an idea about using a form on
the front page which would authenticate against a database (already done
this part) but I am having problems getting people to the members/lobby
area.  One way of doing it is to use the $_SERVER['PHP_SELF'] variable and
when index.php calls itself the checks for cookie data would tell them that
they have successfully logged in and maybe use an include statement.  The
other alternative is that as soon as the checks against the SQL database are
complete I could use a header ("Location: ./foobar.php") statement to move
them to the right page and then pull data based on the user id that is
stored in a session/cookie, but the problem is that once I send a HTML
header (stylesheets for the form) I can't use the header function as it
burps an error.

 

How do you guys handle events like this?

 

Anthony Wlodarski

Senior Technical Recruiter

Shulman Fleming & Partners

646-285-0500 x230

aw at sap8.com

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20070816/0ae0a06e/attachment.html>


More information about the talk mailing list