Ending a session but user can still log in...

I've created a series of jsp pages, and put headers in them to prevent caching of output. I have a bean to store the user info and the bean is stored in the session.
Fbean u = (Fbean) session.getAttribute("beanname");
When the user logs out, I have:
session.removeAttribute("beanname");
So it works fine at first. The user hits the BACK button and he's taken to a login page. If he presses the BACK button again he's taken to a page where the "PAGE EXPIRED ...hit refresh..." The problem is when I hit the refresh button I'm logged in again as if I didn't even log out.
Can anyone help solve this issue?
I appreciate it,
Thanks,
Lior

"PAGE EXPIRED ...hit refresh..." The problem is when I
hit the refresh button I'm logged in again as if I
didn't even log out.Maybe the problem is in that page what you press refesh on. Are you checking the session to see if the user is a valid logged in user? This is just a guess
So when user logs in it sets a session attribute (let's say his/her username). So on the page where you are refreshing, the first thing you should do is
String loginUsername = (String)session.getAttribute("username");
if (loginUsername.length == 0)
// send user to log out page.
// continue rest of page here

Similar Messages

  • Removed users can still log in

    Hi there
    I'm having an odd problem about removed users that can still log in. Users are defined on a OD server (OS X server 10.4.4), the users are put into groups, and the different groups can log in to different computers. Works fine, more or less.
    However, if I remove a user from a group, he can still log in to all the computers he was able to log in before I removed him! Same is true if I remove an entire group from a computer list - all users that were in that group can still log in to the computer.
    E.g:
    iMac; login allowed for Group-1, with User01 and User02
    -> User01 and User02 can log in. Fine.
    Remove User01 from Group-1
    -> User01 can still log in to the iMac. ????
    Removing Group-1 from the iMac computer list
    -> User01 and User02 can still log in. Grrr...
    I did several restarts of both the clients and the OD server, trashed the cache files in /Library/Caches and deleted mcx-caches in Netinfo Manager. Nothing helped. It's starting to drive me mad!!
    Any ideas?
    Thanks, Tina

    i persume u delete the cache etc on the clients?

  • Scponly with chroot setup but user can STILL forward ports... [SOLVED]

    I'm using scponly and have chrooted a user to his home directory.  I noticed however that I can ssh into the box enabling port forwarding which is a dangerous security breach in my opinion.  I'd like to have the ability keep port forwarding for other users, but for the scponly user, I'd like to disallow ssh port forwarding.  Anyone know how?
    $ ssh nightshade -P 8081
    username@nightshade's password:
    Welcome to nightshade
    Last edited by graysky (2009-09-25 19:08:26)

    Turns out this can be accomplished by the addition of two new lines to the sshd_config:
    Match user USERNAME
    AllowTcpForwarding no

  • So I just transferred my stuff from my first iPhone I my new one. Now I'm trying to log in to iTunes/apple account but it's not letting me. I can still log into apple on old phone

    So I just transferred my stuff from my first iPhone Ito my new one. Now I'm trying to log in to iTunes/apple account but it's not letting me. I can still log into apple on old phone

    What happens when you try?

  • I set up a new user on my network today and am now in a location without access to that network. I just set her up as a user on her macbook but I can't log in with her credentials. Is that because I am not on the network and it is the initial setup?

    I set up a new user on my network today and am now in a location without access to that network. I just set her up as a user on her macbook but I can't log in with her credentials. Is that because I am not on the network and it is the initial setup?

    You need to set the option to create a mobile account using the Directory Utility app. 

  • Restarting my computer even while other users were still logged in

    Before updating to Leopard, I used be able to Restart my computer even while other users were still logged in. Yes, I would get a warning that others were still logged in and stuff might be lost in their environments, but for expediency I took the chance and typed in my password as Admin and was allowed to Restart.
    This no longer works for me in Leopard.
    I found a discussion about this same problem here:
    http://discussions.apple.com/thread.jspa?messageID=5752187&#5752187
    Great -- But the solution that that thread leads to is to use the Command Line in the Terminal and figure out whether one's unix ID number jibes with Group ID or Admin ID etc. etc. -- yuck --
    Sorry, that's getting a little too technical for me. Is there a GUI solution to this?
    Thank you.

    Your whole bookmarks story is very confusing to me. Perhaps someone else can explain that better. :)
    Can you give me your crash reports?
    #Enter ''about:crashes'' in the Firefox address bar and press Enter. A Submitted Crash Reports list will appear, similar to the one shown below.
    #Copy the '''5''' most recent Report IDs that start with '''bp-''' and paste them into your response here.

  • User can not log in

    I have a Document Center protected document - it's a test one, that simply needs a valid AdobeID and Password to open it.
    A new user can not log in and view it, older users are OK. He can log in, change has password etc, but when he tries to open the pdf, it will not accept his user name/password saying "The email address or password you entered is incorrect or you need to update your Adobe Online Centre Account. Please enter your email address or password again, or click the Manage My Account button below for help with your account". He has tried both but gets nowhere - with Manage My Account, He can log in and see his details, change password - but still can not open the pdf!
    Can anyone please help?
    I notice the link to Document Centre support now fails - is there any support for Document Center anymore?  

    Hi Chetan,
    You may check this thread to find your solution:
    Re: Two licences but only one is visible
    Thanks,
    Gordon

  • Lync 2013 disabled user can still login.

    Ok. so we have this weird behavior and it's been driving us crazy for over a week. We have a lync 2013 deployment on a forest with several child domains.<o:p></o:p>
    In the middle of the deployment, we noticed that our changes to the user characteristics were not being updated. Eg: we enable or disable
    enterprise voice, no changes. We change the sip URI, log out, login, nothing, no changes. And we noticed that if we disable the user from Lync server (from the lync controlpanel), the user can still login. We assumed some lag on AD replication, but no, a user
    can still login after a week!<o:p></o:p>
    The deployment is a standard Lync 2013, single FE, with a single Edge server. We have enabled Enterprise voice, changes to the enterprise voice routes are
    working, if we enable or disable a route we can see it on the client, but changes on the dialplan are not reflected.<o:p></o:p>
    I can’t find any reference to this behavior. I know if I disable a user from the AD he can still signing into Lync, but this is different, we are disabling
    the user from Lync server. We even removed the user completely from Lync and he can still use it as normal.<o:p></o:p>
    We checked the user using adsiedit and the msrtcsip-userenabled is set to false, we even voided the certificate via lync console. Still able to use it.
    Suggestions?
    Thanks in advance.
    Fabio Ricci.

    Hi,
    Please check if there is any error message on FE Server when the issue happen.
    It seems to be the issue of CMS replication.
    Please check CMS replication status by running Get-CsManagementStoreReplicationStatus.
    If CMS replication not update to the latest version, run Invoke-CsManagementStoreReplication.
    If the issue persists, please check Lync Server update, make sure Lync Server update to the latest version, and then test again.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • How many users can be logged on to the base station

    how manty users can be logged onto the base station?

    I am not sure if you mean this to be in the TC area but it will handle 50users I think was the spec.. but never ever do it. Around 10users per AP is about the max you ever want to try. That is assuming all are using the net at the same time. You can probably manage more as long as most are not actually in use.

  • I need to change my iCloud email address.  I changed it for my Apple id but I can't log out of iCloud to change it there.  Find my iPad is activated so I can't delete my iCloud account.  I don't have the email address the iCloud login has anymore.

    I need to change my iCloud email address.  I changed it for my Apple id but I can't log out of iCloud to change it there.  Find my iPad is activated so I can't delete my iCloud account.  I don't have the email address the iCloud login has anymore so I can't have the password sent there.  To sum it up, iCloud has an old email for the account log-in.  I don't remember the password for the old email.  I have Find My iPad activated so the iCloud account cannot be deleted.  And I am already logged out of iTunes & App Store. 

    If you mean that Find My Phone is asking for a password to a different Apple ID to your current Apple IDand that ID is a previous version of your current ID, not an entirely different one.
    This feature has been introduced to make stolen phones useless to those that have stolen them.
    However it can also arise when the user has changed their Apple ID details with Apple and not made the same changes to their iCloud account/Find My Phone on their device before upgrading to iOS 7, or if you restore from a previous back up made before you changed your details and some other circumstances.
    The only solution is to change your Apple ID back to its previous state with Apple at My Apple ID using your current password, you don’t need access to this address if it’s previously been used with your Apple ID, once you have saved these details enter the password as requested on your device and then turn off "find my phone" and delete the account from your device. It may take a short while to remove the account.
    You should then change your Apple ID back to its current state, save it once again and then log back in using your current Apple ID. Finally, turn "find my phone" back on once again.
    This article provides more information about Activation Lock.

  • User can't log in / Server can't create new users

    I recently updated to OS X Server 10.5.5. Now one of my users can't log in. Wrong username or password the system says. I've reset the password but it doesn't help.
    When creating a new user I get this error:
    "The server reported the error '-14120' while trying to create the user."
    How can I fix this?

    Well, to move the stuff, make a New Account, log into a different admin account & get BatchMod, it's much better/easier than the Finder for recursive Permission changes...
    http://www.lagentesoft.com/batchmod/index.html
    Now careful with BatchMod, it's crazy powerful, but easier than Command Line.
    Oh, this bad user isn't using FileVault I hope???
    OK, once BatchMod is loaded, you can drag the whole bad user's folder to it's icon and set the Ownership/permissions to the new replacement user, check Apply to Enclosed items, go.
    Oh, if you have room you might make a copy of that User's folder first & use the copy.
    Then open the bad User's folder, Select All, drag to new replacement User's folder.

  • All of a sudden my IMessage wont let me send any messages but i can still receive them what should i do?

    My IMessage wont let me send any messages but i can still recive them how can i fix this?

    Because Apple's currently having trouble with the iMessage and FaceTime servers. Nothing can be done from your end.

  • Lock "Print & Fax" Sys Preference user can still add printers, why?

    lock "Print & Fax" Sys Preference user can still add printers, why?

    I should add that, I click the lock icon and it shows locked, but the + sign to add a printer is not greyed out and still allows printer drivers to be installed.  It then allows the printer driver to be deleted.  I have tried quiting System Preferences and rebooting the system and still have the same results.
    Pat

  • Once in awhile my screen will freeze while I'm watching a video. Lately it's happening more often, I'm watching a video and it'll freeze BUT I can still hear the dialogue. Only solution I've found so far is to do a hard shut down. HELP!!

    Once in awhile my screen will freeze while I'm watching a video. Lately it's happening more often, I'm watching a video and it'll freeze BUT I can still hear the dialogue. Only solution I've found so far is to do a hard shut down. HELP!!

    Hi there, im also having this problem, i tried running most of the games on my system, and some that are considered "high end" games, are giving me the exact same problem, but other games are running and im able to message fine, i also got some friends to send me messages, and i can recieve messages perfectly, also i noticed moving the actual window around on the screen or just closing down skype also lags. I have 16GB of ram and 4.4Ghz Octa-Core CPU, i checked my load while on the high end games and it there was more than enough hardware usage left like normal for skype to run, and skype wasnt taking any extra up than before. I also checked by bandwidth and i was having no problems with that as skype would lag even on offline games. 
    I have tried re-installing under a different directory and still the same problem persists, this has only been a problem within the last 24hrs and i haven't installed any other programs that could affect this at the moment.
    *UPDATE* I tried downgrading to an older version of skype, 6.3.0.107. Problem Still persists

  • Why does iTunes/iPhone 4S insist it can't find a song on my PC or my phone when it is on both? This is resulting in me being unable to use the ringtones I created from these songs, but I can still play the songs.

    OK, so I'm clearly a newb. I thought if I asked a question, it would post, and now I'm being told to post a comment, so I'm asking the same question again. Sorry I sound like an idiot. I'm new to this apple/mac stuff.
    Why does iTunes/iPhone 4S insist it can't find a song on my PC or my phone when it is on both? This is resulting in me being unable to use the ringtones I created from these songs, but I can still play the songs.

    If you have added the ringtone file correctly to iTunes, it will appear under iTunes 'Tones' library.
    If you don't find Tones library in iTunes, go to iTunes menu EDIT/PRFERENCES under GENERAL tab, check the Tones Box under Library source to display Tones library in iTunes.
    iTunes accepts only m4r file as ringtone and has to be less than 40secs.

Maybe you are looking for