<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<STYLE>P {
        PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
BODY {
        FONT-SIZE: 10pt; FONT-FAMILY: Tahoma
}
</STYLE>

<META content="MSHTML 6.00.2900.2995" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=929373201-07122006><FONT face=Arial 
color=#0000ff>Hi Scott,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=929373201-07122006><FONT face=Arial 
color=#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=929373201-07122006><FONT face=Arial 
color=#0000ff>mapframe.jsp should only be called when a complete refresh of the 
page is requested by the browser.&nbsp; The page refresh was intended to get a 
new copy of the map so the Create() call is appropriate.&nbsp;&nbsp;If a user 
wants to refresh just the map pane they can right click in the pane and hit 
refresh.&nbsp; A Refresh Icon can also be added to the WebLayout 
toolbar.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=929373201-07122006><FONT face=Arial 
color=#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=929373201-07122006><FONT face=Arial 
color=#0000ff>User sessions were not intended to go beyond the lifetime of the 
browser session.&nbsp; Certainly it is possible to do as you have found out with 
modifying mapframe.jsp.&nbsp; Just out of curiosity, how did you get around the 
CreateSession() in mainframe.jsp?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=929373201-07122006><FONT face=Arial 
color=#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=929373201-07122006><FONT face=Arial 
color=#0000ff>Thanks,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=929373201-07122006><FONT face=Arial 
color=#0000ff>Trevor</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma><B>From:</B> Scott Reisdorf [mailto:scottreisdorf@hotmail.com] 
<BR><B>Sent:</B> Friday, December 01, 2006 9:26 AM<BR><B>To:</B> 
users@mapguide.osgeo.org<BR><B>Subject:</B> Question about map.Create and 
map.Open() on the mapframe<BR></FONT><BR></DIV>
<DIV></DIV>All,<BR>I have a questions about loading a map from a saved 
MgSession.&nbsp; I also&nbsp;think there is a possible bug in the mapframe.jsp 
page that prevents the page from loading a map saved in an open 
MgSession<BR><BR>In the mapframe.jsp the page always calls map.Create() forcing 
a new Map to be drawn, even if the calling Session already has a Map object 
associated to it with the same name.&nbsp; Shouldn't the mapframe.jsp page do a 
check to see if the map has been created to the calling MgSession and call a 
map.Open() rather then a map.Create() so that the map will have the proper 
layers saved in the users session?<BR>&nbsp;<BR>I want to have the users map and 
dynamic layers persist throughout their MgSession, but with the current code 
when the users accesses the main page it always creates a new map 
(map.Create()), rather then doing a check and a map.Open().&nbsp;&nbsp; When I 
changed this code, the application performs as expected and loads in the proper 
map for the users MgSession.&nbsp; <BR>&nbsp;<BR>Any help is much 
appreciated.<BR>&nbsp;<BR>Thanks,<BR>-scott<BR><BR></BODY></HTML>