DiigIT | IT Community
No Profile Image
Welcome Guest
New User? Register | Login

Which is Best Sessions or Cookies for Login Script

By: Shailesh Singh | 04 Sep 2008 11:17 pm

I'm remaking a system and now i'm making the login part.

The existent login was made with COOKIES but now i was thinking in to do with SESSION.

What is better for this ?

This is a internal system with some modules that i'm renewing.

Best Regards or all !

Comments

Hi,
Use the php function session_start( ). It will use cookies if they are
available or use session variables in URLs automatically for php >v4.2.0.

Direct use of cookies is better for long term variables rather than
sessions.

Thanks.
By: Shailesh Singh | 04 Sep 2008

Leave a comment

Enter the text in the image
img
Can't read?
Type the characters you see in the picture below.


Close Move