Jump to content

Sessions or SQL login?


Praetorian

Recommended Posts

For no particular reason other than to see if I can, I plan to overhaul my website with some new features that would require me to log in.Several of my pages are pulled from an SQL database, and I'd like to change my website so that I can edit these entries without having to go into phpmyadmin. Basically, when I'm logged in, an Edit link will appear and allow me to edit that entry. Like Wikipedia.My question is, considering I'm going to be editing information in an SQL database, would it be better to build my login script around Sessions? Or create a table for logging in/out? Or does it not make a difference?Thanks in advance. And on a side note, if anyone has any suggestions or knows of any good tutorials for editing SQL tables remotely, I would greatly appreciate a link.

Link to comment
Share on other sites

You would be best off using both. Autenticate users through a database, but then keep their authentication alive through sessions.You use SQL to edit tables in SQL-based databases. http://www.w3schools.com/sql/

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...