Revision: 1508
http://mrbs.svn.sourceforge.net/mrbs/?rev=1508&view=rev
Author: cimorrison
Date: 2010-10-18 15:25:11 +0000 (Mon, 18 Oct 2010)
Log Message:
-----------
Reversed the order of session_name() and session_set_cookie_params() for safety
(see PHP manual)
Modified Paths:
--------------
mrbs/trunk/web/session_php.inc
Modified: mrbs/trunk/web/session_php.inc
===================================================================
--- mrbs/trunk/web/session_php.inc 2010-10-18 15:16:03 UTC (rev 1507)
+++ mrbs/trunk/web/session_php.inc 2010-10-18 15:25:11 UTC (rev 1508)
@@ -47,9 +47,9 @@
$auth["session_php"]["session_expire_time"] = 0;
}
+session_name("MRBS_SESSID"); // call before session_set_cookie_params() - see
PHP manual
session_set_cookie_params($auth["session_php"]["session_expire_time"],
$cookie_path);
-session_name("MRBS_SESSID");
session_start();
/*
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits