Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
627 views
in Technique[技术] by (71.8m points)

cakephp takes me to login page on multiple request

On my cakephp based site, when i do multiple requests simultaneously, cakephp logs me out.

What happens exactly is,

I click on one of the link on my site, to open it in a new tab, now, while the request is being processed, if i click another link on my site, cakephp takes me to the login page for this link... What can be the solution for this?

Thanks...

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I would bet this is your problem:

 * CakePHP session IDs are also regenerated between requests if
 * 'Security.level' is set to 'high'.
 */
    Configure::write('Security.level', 'high');

You're running into problems with Cake regenerating the cookie for two requests simultaneously.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...