dongshu9458 2012-06-04 21:29
浏览 25
已采纳

我不希望$ _SESSION在很长一段时间后停止[重复]

Possible Duplicate:
Extending Session Timeout in PHP

I have php sessions where the problem I could have is that if for a long time I do not use the application, if I refresh the web browser, I suddenly get Notices on all my $_SESSION's. I want to know if it is possible that if I have not used a web page for a long time, that if I refresh a page, the $_SESSIONs remain intact?

I know the @ symbol can be used but is that only to not show the error message? I just don't want it to ever stop the session.

Thanks

  • 写回答

3条回答 默认 最新

  • doushan1863 2012-06-04 21:37
    关注

    The notices you are getting likely describe what is wrong with your code. Consider correcting your code so you don't get notices, instead of avoiding the case where your errors manifest.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 孟德尔随机化结果不一致
  • ¥20 求用stm32f103c6t6在lcd1206上显示Door is open和password:
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)
  • ¥15 keil里为什么main.c定义的函数在it.c调用不了
  • ¥50 切换TabTip键盘的输入法