Php Session and post problems in login page

前端 未结 3 1156
甜味超标
甜味超标 2021-01-14 06:51

Ok, so we got some basic HTML here

Username:
3条回答
  •  醉话见心
    2021-01-14 07:32

    the session problems for login page might occur because the url you are opening in the browser are not unique. for example If say you are creating a login page for your website, and you have created sessions successfully. Now, if you are logging in from url say http://geekzgarage.com then your session is limited to this url only. If you again open the above url like http://www.geekzgarage.com (note www. in both urls), then you will see that you are not logged in. So make sure that your webpage is opening always in single type of url. either with www. or without www.

提交回复
热议问题