• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Frames Session problem..
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Frames Session problem..


  • Subject: Re: Frames Session problem..
  • From: "Shravan Kumar. M" <email@hidden>
  • Date: Fri, 22 Jan 2010 02:33:45 -0800 (PST)

Hi Sreenivas,

1) Having two sessions is the first blunder by design, avoid it! Are you aiming at any benefits doing this way?
2) Design principle: When you have one login (one point of entry), then you must (not should) have ONLY ONE session.
3) Do you know where is the second session getting created? If so, please remove that code and you are done!!!

Regards,
Shravan Kumar. M
--------------------------


From: Sreenivasulu A <email@hidden>
To: email@hidden
Sent: Thu, January 21, 2010 7:35:54 PM
Subject: Re: Frames Session problem..

Hi Shravan,

Thanks for your reply.
I would like to know in a detail way. I will explain the issue what I am facing.

My Application design like below:
In a WOGenericContainer 2 WOFrames are included namely login and application.
When application launched, 2 frames are loded. Left frame consists of Login fields and Right Frame consists of application specific data. When application loads, at first Login fields are displaying and another frame containing Welcome WOComponent.
When a User login, in Login Frame Some WOHyperlinks are displayed. When we click on the WOHyperlink,  Right Frame content is generating. At this time in my application 2 sessions are existing. One session is for Login frame and another session is for application specific data.
Logout button is in Login Frame. When I click on Logout, Left side Frame's Session is terminated. But Right side Frame's Session is still existing and Right side components are working.
The code for Left side login frame is shown below:

    public WOComponent logout()
 {
        WORedirect rePage = (WORedirect)pageWithName("WORedirect") ;
        String page = context().componentActionURL().substring(0, (context().componentActionURL().indexOf(".woa") + 4));
        session().defaultEditingContext().revert();
        session().terminate();// Left side Frame's session is only terminating at this time
        rePage.setURL(page);
        return rePage;
    }

The Session for Right side Frame is not accessible from Left side Frame. Please get away from this issue.( In Mozilla when a User Clicks back button the Right side Frame is accessible and Left side Frame is showing session expiration page).

Thanks in Advance,
Sreenivasulu Arveti.


On Tue, Jan 19, 2010 at 11:34 PM, Shravan Kumar. M <email@hidden> wrote:
Use _javascript_ to call logout in another frame when logout in one frame is called, that would simply solve ur problem!

Frames Session problem..

Tue Jan 19 16:27:42 2010
From:
"Sreenivasulu A" <email@hidden>
To:
"" <email@hidden>
Hi All,

My application consists of  2 frames. One is for user login screen, and other is for  application specific. Each frame maintains seperate session object. When I logout my application only one session is terminating. Other frame session is remaining itself. I don't know how to track other frame session object.
When user clicks on logout, session().terminate() is called in the code.
Please help me in this.


Thanks in Advance,
Sreenivasulu Arveti.




--
Thanks & Regards,
Sreenivasulu Arveti.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Frames Session problem.. (From: Sreenivasulu A <email@hidden>)

  • Prev by Date: Re: AjaxSubmitButton
  • Next by Date: Re: AjaxSubmitButton
  • Previous by thread: Re: Frames Session problem..
  • Next by thread: How to upgrade my OSXServer10.4 to Wonder 5.4 from Wonder 5.3
  • Index(es):
    • Date
    • Thread