The Session repository only stores resources for as long as the session exists.  You will need to persist the layer definition somewhere in the Library repository, and then figure out how to retrieve it next time the user accesses your application.  Be aware that the anonymous user is not permitted to write to the Library repository, so your app will need to authenticate as a different user to do this.<div>
<br></div><div>Jason<br><br><div class="gmail_quote">On 22 April 2010 22:51, SriRam007 wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
I want to keep permanently the modified scale ranges of a layers.<br>
<br>
I already have done By modifing the XML file of Layerdefinition for changing<br>
the scale dynamically.<br>
And it is working fine also. But it exists till the session end. I want to<br>
keep it permanently.<br><br></blockquote></div></div>