Jump to content

Session Issues?


Recommended Posts

Does any other user have issues with there sessions?

 

I am finding that no matter how long a user is logged into there clientarea they are not logged out. Its strange as the server ini is set to 24 mins so it should be logging out after that period of inactivity BUT it doesnt appear to be doing this.

 

Ive tested this on my dev license also wich is on a completely different server to production and it seems to be having the same effect. A close collegue of mine also uses whmcs and his install is again on a completely different server in a totally different country and again the same problem persists. Even if you close you browser and then re-open it it still has you logged in!

 

It seems to be happening in Firefox constantly and other browsers now and again. Another funny thing is that forthe whmcs website itself this problem is non-existant! I know the majority of users will say its the php.ini BUT like i stated i have checked that and its defo set at 24 mins so it should destroy the session, but its not.

 

I have a ticket on hold regarding this so matt can see if any other users report this issue. Though id post a thread to see whether any one else is having the same issue..perhaps no one else has noticed after all how many of you actually login into their clients account? and if you do ifs probarbly only for a few mins....:!:

Link to comment
Share on other sites

Hi Sparky,

 

Ahh, now that would make sense. Im suprised matt didnt suggest that in the support ticket :?

 

My first impressions of the livehelp by stardevelop have been really good BUT in my opinion they should have looked at the session issue...is there no way that this can be split from the sessions of whmcs so that they are destroyed? and the user logged out?

 

In your mind is there a work around??

 

Also i presume that this would be happening for all livehelp software?

 

Lastly, it still doesnt explain why the exact same thing happens on my dev license OR my collegues setup which doesnt have any type of livehelp installed....so maybe its not the livehelp??

Link to comment
Share on other sites

Was just a suggestion!! it may not have been the answer.

You could run a java timer and force the session logout.

Heres something that I was playing with a while ago... it may get you started

{if $loggedin}

<div>Session Expires in <span id="counter"></span></div>

<script type="text/javascript">

{literal}

<!--

//

var tick=60; // every 60 seconds

var seconds=1440+tick;

function display_counter() {

seconds-=tick;

if (seconds<0){

seconds=0;

alert("Your Session has Expired.");

}

else {

if (seconds<300) { // 5 minutes

tick=1; // every second

}

var s = parseInt(seconds / tick);

if (tick==1) {

s += ' seconds';

}

else {

s += ' minutes';

}

var e=document.getElementById('counter');

e.parentNode.style.visibility = "visible";

e.innerHTML=s;

setTimeout("display_counter()",tick*1000);

}

}

display_counter();

-->

{/literal}

</script>

{/if}

Note: this does not force the logout or clear the session yet. Only displays the time left. Edited by sparky
Link to comment
Share on other sites

LOL, no problem sparky, Appreciate the input regrdless.

 

Note: this does not force the logout or clear the session yet. Only displays the time left.

 

again thanks for input but this would appear to be cosmetics then an not really what im after...need to destroy the session...ill have a play aroundwith it though see what i can come up with mself. thanks

Link to comment
Share on other sites

Just another thought!!

 

Maybe the session garbage collector is not running as often as it should be...

you could try adding this to the top of your configuration.php file

@ini_set('session.gc_probability', 1);

@ini_set('session.gc_divisor', 1);

That should make it fairly harsh though

http://www.php.net/manual/en/session.configuration.php#ini.session.gc-divisor

Edited by sparky
Link to comment
Share on other sites

  • 4 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated