dongming8867 2011-03-03 01:54
浏览 99

Safari的烦人的cookie问题。 我如何有效地解决它?

In case you dont know what safari's cookie problem, here's are a link to it: Safari doesn't set Cookie but IE / FF does.

I got some problem with it. Compared to the answer in the link I have a user-login cookies set with user-id and hash. In the login page(login.php) I have :

<form action="serverScripts/login/checkLogin.php" method="post">
        <input type="text" name="loginUserName" id="loginUserName" class="loginForms" value="E-mail" />
        <input type="password" name="loginPassword" id="loginPassword" class="loginForms" value="Password" />
        <input type='submit' id="signInButton" class='button' value='Sign in'/>
</form>

If it verifies correctly with the database the checkLogin.php scripts set the cookies and redirects the user to index.php. But the problem is that Safari don't set cookies on http 302 statuses, which enoyes me pretty much. all other web browser does it. But the answer in the link I provided said that I shall set the cookies on the entry? If I understand correctly that means on my login.php page. How can I do that? via AJAX(I must verify the user with username and password!) very ineffective I think. Is there an another solution to this problem? Hate Safari the link is one year old hasn't corrected the Safari bug yet.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥30 python代码,帮调试
    • ¥15 #MATLAB仿真#车辆换道路径规划
    • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
    • ¥15 数据可视化Python
    • ¥15 要给毕业设计添加扫码登录的功能!!有偿
    • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
    • ¥15 微信公众号自制会员卡没有收款渠道啊
    • ¥100 Jenkins自动化部署—悬赏100元
    • ¥15 关于#python#的问题:求帮写python代码
    • ¥20 MATLAB画图图形出现上下震荡的线条