Jump to content
Sign in to follow this  
peacehunter

How to make login page without cookie or session in php?

Recommended Posts

Hi all of users of w3schools forum. I am a brand new user of this forum.And I am also new php programmer . Recently I am having a problem with php login system. I have made an user login system, but that was cookie based.If users browser does not support to set cookie then it fails to login.Please give me an solution how can I make login system without cookie or session.

Share this post


Link to post
Share on other sites

There is no way, you have to hold the user information somewhere to tell your site which user is which, but don't use cookies, they are very easily hackable and can lead to scammers getting account information without passwords, which is why I say use sessions.:]

Share this post


Link to post
Share on other sites
There is no way, you have to hold the user information somewhere to tell your site which user is which, but don't use cookies, they are very easily hackable and can lead to scammers getting account information without passwords, which is why I say use sessions.:]
Thnxxx for reply...But as far I know that session works before closing the browser, after closing the browser, session is destroyed. If I want to keep logged in after closing the browser , then how can it possible without using cookie???

Share this post


Link to post
Share on other sites
Thnxxx for reply...But as far I know that session works before closing the browser, after closing the browser, session is destroyed. If I want to keep logged in after closing the browser , then how can it possible without using cookie???
Most likely if a user is closing the web browser, they want to stop browsing the internet. If they want to get back to the site, they will have to log in again. I don't see any problems with that. Besides, major browsers will now keep records of passwords for logins if they user chooses to save it.

Share this post


Link to post
Share on other sites

Well, many sites do store login information in cookies for their users' convenience (this site included) - you just have to be more careful.

Share this post


Link to post
Share on other sites
If I want to keep logged in after closing the browser , then how can it possible without using cookie???
You can't, that's what cookies are for.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...