Yii Framework Forum: session life - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

session life The sessiion expires at first operation

#1 User is offline   agarcilazo 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 07-April 12
  • Location:México D.F.

Posted 17 September 2016 - 08:35 PM

Hi, hope not duplicate the question.

I develop a system, works nice at development. but in the hosting this happens:

1.- I start the session, validating user and pass vs database

2.- the user menu is displayed

3.- I open one of the items in the menu (no matter which)

4.- the user is logged out !!

I download the complete tree of the app, and again, in my equipment it works.

Im not really a noob, I deploy already some pages in yii. but right now , I really do not know wat to do.

any ideas?

thanks in advance, hopping forgot muy english, not my native language

#2 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,558
  • Joined: 12-October 09
  • Location:Croatia

Posted 23 September 2016 - 01:25 AM

If everything works on localhost, the problem is most likely to do with your hosting company.

It's about configuring where and how PHP stores session files.

Find more about me.... btw. Do you know your WAN IP?

Share this topic:

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users