- Posts: 10
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Problem settings cookies with secure flag
- mcalvoca
- Topic Author
- Offline
- New Member
Less
More
8 years 9 months ago #122025
by mcalvoca
Problem settings cookies with secure flag was created by mcalvoca
I am trying to set the secure flag for the cookies following the documentation:
- manual.limesurvey.org/Optional_settings#Session_settings
When I add 'session' => array ('cookieParams' => array ('secure' => true) ), it returns me an error like "session is readonly" or "server error" if i dont enable debug mode.
How can i enable secure cookies when ssl?
thank you
- manual.limesurvey.org/Optional_settings#Session_settings
When I add 'session' => array ('cookieParams' => array ('secure' => true) ), it returns me an error like "session is readonly" or "server error" if i dont enable debug mode.
How can i enable secure cookies when ssl?
thank you
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
8 years 9 months ago #122053
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Problem settings cookies with secure flag
You access to the survey with ssl ?
Can you enable ssl on the General settings and force ?
Remind to test if ssl is enabled for your website.
Can you enable ssl on the General settings and force ?
Remind to test if ssl is enabled for your website.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- mcalvoca
- Topic Author
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 0
8 years 9 months ago - 8 years 9 months ago #122059
by mcalvoca
Replied by mcalvoca on topic Problem settings cookies with secure flag
not yet, but if I set the value to false, it returns me the same error:
'session' => array ('cookieParams' => array ('secure' => false) )
-> "session is readonly"
thankyou anyway!
--- Some info ---
CException
Property "LSYii_Application.session" is read only.
/media/sdb5/apache/sites/default/framework/base/CModule.php(513)
501 $this->setComponent($id,$component,$merge);
502 }
503
504 /**
505 * Configures the module with the specified configuration.
506 * @param array $config the configuration array
507 */
508 public function configure($config)
509 {
510 if(is_array($config))
511 {
512 foreach($config as $key=>$value)
513 $this->$key=$value;
514 }
515 }
516
517 /**
518 * Loads static application components.
519 */
520 protected function preloadComponents()
521 {
522 foreach($this->preload as $id)
523 $this->getComponent($id);
524 }
525
Stack Trace
'session' => array ('cookieParams' => array ('secure' => false) )
-> "session is readonly"
thankyou anyway!
--- Some info ---
CException
Property "LSYii_Application.session" is read only.
/media/sdb5/apache/sites/default/framework/base/CModule.php(513)
501 $this->setComponent($id,$component,$merge);
502 }
503
504 /**
505 * Configures the module with the specified configuration.
506 * @param array $config the configuration array
507 */
508 public function configure($config)
509 {
510 if(is_array($config))
511 {
512 foreach($config as $key=>$value)
513 $this->$key=$value;
514 }
515 }
516
517 /**
518 * Loads static application components.
519 */
520 protected function preloadComponents()
521 {
522 foreach($this->preload as $id)
523 $this->getComponent($id);
524 }
525
Stack Trace
Last edit: 8 years 9 months ago by mcalvoca.
The topic has been locked.
- mcalvoca
- Topic Author
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 0
8 years 9 months ago #122082
by mcalvoca
Replied by mcalvoca on topic Problem settings cookies with secure flag
hello,
I found one way to set this flag, i know it is not the best way, but at least it works.
In index.php I have added ini_set('session.cookie_secure',1); just before init session.
thanks
I found one way to set this flag, i know it is not the best way, but at least it works.
In index.php I have added ini_set('session.cookie_secure',1); just before init session.
thanks
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
8 years 9 months ago #122100
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Problem settings cookies with secure flag
Hi,
Carsten test it, and update manual : manual.limesurvey.org/Optional_settings#Session_settings
Carsten test it, and update manual : manual.limesurvey.org/Optional_settings#Session_settings
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.