The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

can I force complete logout when cpsession is missing/incorrect in WHM ?

Discussion in 'cPanel Developers' started by aww, Sep 29, 2012.

  1. aww

    aww Well-Known Member

    Joined:
    Feb 10, 2005
    Messages:
    152
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Right now the way WHM works when sessions are enabled/forced, is if you pass it a direct url to a subfunction, it will show you the username (from your cookie) and ask for password.

    I'd like force a complete clearing or ignoring of a cookie when no session is specified and force a complete login (ie. the same as if you hit the "logout" option on that page)

    Anyway to do this now or should that go on the wishlist?
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Re: can I force complete logout when cpsession is missing/incorrect in WHM

    Could I move this to the developer's section of the forum? I don't personally know if what you are asking is viable, and it's more of a developer question that someone who knows the backend could answer.
     
  3. aww

    aww Well-Known Member

    Joined:
    Feb 10, 2005
    Messages:
    152
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Re: can I force complete logout when cpsession is missing/incorrect in WHM

    Sure, sorry I didn't know where to put it.

    I guess I should clarify what I am actually trying to do is direct link to whm items while cpsessions are active but force a full login instead of using the cookie which seems to always send me back to the main WHM page. It's a bit annoying.
     
Loading...
Similar Threads - force complete logout
  1. swbrains
    Replies:
    2
    Views:
    149

Share This Page