user story - autologon.txt

来自「如题ServletJSP.rar 为网络收集的JSP网站源文件」· 文本 代码 · 共 28 行

TXT
28
字号
Story:
    perform user auto logon
    user will not entering username and password every time he access xforum

description:
    show a checkbox on logon form : "auto logon"
    if user checked "auto logon" and logon ok
      save username to cookie
    from then on, in AutoLogonFilter, check cookie first
      if there is username cookie
        save user info in cookie to session
    to disable auto logon
        logon again and do not check "auto logon" checkbox

work item:
    ok.add a checkbox in logon page
    ok.modify logonForm.java add boolean autoLogon
    ok.modify logonAction.java
        if user logon ok
            if user check "auto logon", save username to cookie
            otherwise, remove username from cookie
    .add AutoLogonFilter.java
        check session, if already logon, quit
        otherwise, check cookie , if username in cookie is available
            perform auto logon
            save user info to session
    .add AutoLogonFilter to web.xml

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?