是不是服务器得session目录设置问题?
解决方案 »
- 请问\u706b\u5f71是什么编码啊,怎么转成正常的字符
- 正则的问题
- php提交表单不能得到值
- php连接数据出错 Access denied for user 'ODBC'@'localhost' (using password: NO)
- 在求一个正则表达式,谢谢
- 在php中如何跳转页面
- 请问各位高手zendenc能加密整个文件夹吗??????
- (请教高手)如何在页面中用不同的图片显示从数据库中取出的值?
- 关于Cookie的问题,大虾帮忙!
- 我要做一个在线客服的系统,就是,用户访问网站时,会弹出一窗口,在这个窗口里面,
- 数据库查询问题(sql server2000)
- 请问,php中==和===有什么区别?
我觉得是session问题,一楼能说的详细点吗?
如果是2000你应该修改php.ini里面得Session的路径.默认得好像是/tmp吧,这个是linux得路径,windows应该写成绝对路径,例如c:/temp
1、在discuz论坛当前路径中新建一个tmp文件夹;
2、修改discuz论坛当前路径中的文件admincp.php,查找:
session_start();
一行,在前面加上一行:
session_save_path("tmp");就可以解决进入管理又要反复输入密码的问题!
如果是服务器禁止使用框架所致,你可以用
http://地址/admincp.php?action=menu来访问,并新开窗口实施管理操作,不过这样感觉很烦
後台管理,編輯完資訊後.....按"提交",卻又叫我輸入密碼....然後我就輸入.......但是又回到原設定值了
A.1.一般地,如果是自己的服务器,在硬盘根目录下建立tmp目录。(租用的就去找管理员。。)
2.如果方法1不生效,就在每个分区跟目录都建立tmp
3.还不见效,可以到php.ini(通常在winnt目录里)找到下面一段,按照里面的说明修改就好了。
附:
CODE: [Copy to clipboard]
; Argument passed to save_handler. In the case of files, this is the path
; where data files are stored. Note: Windows users have to change this
; variable in order to use PHP's session functions.
; As of PHP 4.0.1, you can define the path as:
; session.save_path = "N;/path"
; where N is an integer. Instead of storing all the session files in
; /path, what this will do is use subdirectories N-levels deep, and
; store the session data in those directories. This is useful if you
; or your OS have problems with lots of files in one directory, and is
; a more efficient layout for servers that handle lots of sessions.
; NOTE 1: PHP will not create this directory structure automatically.
; You can use the script in the ext/session dir for that purpose.
; NOTE 2: See the section on garbage collection below if you choose to
; use subdirectories for session storage
session.save_path = /tmp //需要改这行,按照上面的E文说明修改即可
我改了,使用很正常