Select to view content in your preferred language

ArcGIS Flex Viewer Session

2286
4
Jump to solution
03-02-2012 04:14 AM
RaoBase
Deactivated User
Hello everyone,
My has app a login form containing a button which calls a web service to authenticate the user.
This works fine. Now I have added a Logout button at the top using the HeaderControllerWidget.

On clicking the Logout button, I call an external webservice to close my BusinessObjects session, then redirect my app to the Login page as follows
var curURL:String = String( ExternalInterface.call("function(){ return document.location.href.toString();}"));
curURL = curURL.substring(curURL.lastIndexOf("/")+1);
navigateToURL(new URLRequest(curURL),'_self');

However when user logs back on, the initial map extent is no longer the same and I get the following error:

ArgumentError: Error #2004: One of the parameters is invalid.
at flash.display::Graphics/drawRect()
at com.esri.ags.layers::Layer/drawBitmap()
at com.esri.ags.layers::Layer/updateDisplayList()
at mx.core::UIComponent/validateDisplayList()
at mx.managers::LayoutManager/validateDisplayList()
at mx.managers::LayoutManager/doPhasedInstantiation()
at mx.managers::LayoutManager/doPhasedInstantiationCallback()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()

Any suggestions how to logout completely from the ArcGIS Flex Viewer without closing the browser?
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RaoBase
Deactivated User
0 Kudos
4 Replies
RaoBase
Deactivated User
Any ideas???
0 Kudos
GerardoGarcia
Occasional Contributor
I'm having a very similar issue now. I was using the 3.0 api, but recently started testing on 3.3. For some reason, everything else the same, this error is occurring in the same manner that you state. Did you find a solution?

jerry
0 Kudos
GerardoGarcia
Occasional Contributor
On another note, I noticed this thread marked as "Answered". However, it is not. please disregard this.
0 Kudos
saurabhgupta2
Emerging Contributor

Hello Everyone

Do any have a code or can tell me how to have a logout system incorporated in FlexViewer 3.6

Regards

Saurabh

0 Kudos