Skip to main content

increase user session time

Comments

7 comments

  • cPRex Jurassic Moderator
    Hey there! Can you provide us with some more details on where this timeout is happening? I can't think of anywhere in WHM or cPanel where there would be a 24-minute timeout. Is this on a certain page of your website?
    0
  • p1p2
    Hello! I'm going to try to explain it, English is not my first language, and I'm kind of new to this. My website uses Cpanel, and I use PHP to start the session, you know, I use the session_start(). The problem is that if the user spends 24 minutes without browsing my site, the session is disconnected. I would like users to be able to have their account active for several days, and if they enter my page, that time will be refreshed. I don't know if this is possible, but I would like to know what possibilities cPanel has. I hope I have answered what you asked
    0
  • p1p2
    Hey there! Can you provide us with some more details on where this timeout is happening? I can't think of anywhere in WHM or cPanel where there would be a 24-minute timeout. Is this on a certain page of your website?

    I forgot to answer the most important thing, it happens to me on all the pages of my website.
    0
  • cPRex Jurassic Moderator
    Thanks for the additional details. I'm not sure, but maybe another user more familiar with PHP will comment on this.
    0
  • HostNoc
    You can modify the php.ini: session.cookie_lifetime = 600 Regards
    0
  • p1p2
    You can modify the php.ini: session.cookie_lifetime = 600 Regards

    Hi, I tried to access that file, but I can't in CPANEL, do you know why?
    0
  • lmstearn

    Admin/WHM access is required to edit php.ini, not possible in a shared hosting subscription. :)

    0

Please sign in to leave a comment.