FAQ |
Calendar |
![]() |
|
Programming Share, tanya jawab, saling bantu antar programmer dengan berbagai macam bahasa pemrograman. |
![]() |
|
Thread Tools |
#1
|
|||
|
|||
![]()
Tolongin ane gan, ane lagi buat program login sama logout. tapi pada saat ane mau logout kog cookie yang ada di applikasi ane kog gak hilang ya..., tapi klo di firefox cookie y udah hilang, berikut potongan source codenya Code: public Resolution logout() { if (getMyCookie() != null) { getMyCookie().setMaxAge(0); getContext().getResponse().addCookie(getMyCookie() ); System.out.println(getMyCookie().getName()); } return new ForwardResolution("/login.jsp?msg=You has logout"); } Code: public Cookie getMyCookie() { if (context.getRequest().getCookies() != null) { Cookie[] cookies = context.getRequest().getCookies(); for (int i=0; i |
![]() |
|
|