Taskframe error: "Session has expired or is invalid."

kruno kruno at ineo.hr
Fri Dec 15 07:49:03 EST 2006


Hi, 


i tried Willems solution (in all gettingstarted files; php, aspx, jsp) but
it didnt work for me :(

Here are the lines before the error causing line:

-----------------

  String mgSessionId = Convert.ToString(GetParameters()["SESSION"]);
  bool showPreviousResults = false;
  MgSiteConnection siteConnection = null;
  InitializeWebTier();

    MgUserInformation userInfo = new MgUserInformation(mgSessionId);
    siteConnection = new MgSiteConnection();
    siteConnection.Open(userInfo);

----------------

... and the error is caused by the last line
(siteConnection.Open(userInfo);)


Thanks in advance,

Kruno.




Willem Schwarte wrote:
> 
> Hi, 
> 
> 
> I think it has to do with a problem I have reported earlier:
> 
> In gettingstarted.php there is this line:
> 
> $cred = new MgUserInformation("Administrator", "admin");
> 
> But if you change the default Administrator passwordt, you will get an
> error.. change it to:
> 
> $cred = new MgUserInformation("Anonymous", "");
> 
> 
> Willem Schwarte
> 
> 
> 
> -----Oorspronkelijk bericht-----
> Van: kruno [mailto:kruno at ineo.hr] 
> Verzonden: donderdag 14 december 2006 20:07
> Aan: users at mapguide.osgeo.org
> Onderwerp: [mapguide-users] Taskframe error: "Session has expired or is
> invalid."
> 
> 
> Hi,
> 
> 
> i have a problem with the session. Namely, when i try to open a map from
> the
> www, the map is shown but the pages in taskframe (the right frame),
> which
> acquire sessionId, can not be open:
> 
> 
> --------------------------
> 
> Session has expired or is invalid. Please log in again. 
> Description: An unhandled exception occurred during the execution of the
> current web request. Please review the stack trace for more information
> about the error and where it originated in the code. 
> 
> Exception Details: OSGeo.MapGuide.MgSessionExpiredException: Session has
> expired or is invalid. Please log in again.
> 
> Source Error: 
> 
> Line 34:     siteConnection.Open(userInfo);
> 
> -------------------------
> 
> However, everything works fine locally, i.e. on a localhost.
> Conclusively,
> this error only appears when i try to open the map, i.e. the pages in
> the
> taskframe of the mapgude viewer, from www.
> 
> 
> 
> 
> Please help.
> 
> Thanks,
> 
> Kruno.
> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/Taskframe-error%3A-%22Session-has-expired-or-is-in
> valid.%22-tf2822804.html#a7879007
> Sent from the MapGuide Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org
> For additional commands, e-mail: users-help at mapguide.osgeo.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org
> For additional commands, e-mail: users-help at mapguide.osgeo.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Taskframe-error%3A-%22Session-has-expired-or-is-invalid.%22-tf2822804.html#a7890801
Sent from the MapGuide Users mailing list archive at Nabble.com.





More information about the Mapguide-users mailing list