Hello!
I was wondering if it was possible to have an everlasting session. Is this possible? My application's user interface is rendered locally within a web browser using seaside. Its content is updated asynchronously by the application. However between some updates so much time can pass that the session expires and if the Javascript then wants to access the page again it only says "Error: you are forbidden to access "http://localhost:7777/MyApp"". I'm using "html scriptaculous update: ..." to create the code which performs the update, which is triggered by my own javascript asynchronously. |
Hi Machisuji,
you can just add a periodic updater to the page that simply pings the server. That keeps the session allive and if you close the window eventually the session expires and is garbage collected. If you have sessions that don't expire, they don't get cleaned up and your image grows. Kind Regards Karsten Am 09.12.09 14:47, schrieb Machisuji: > Hello! > > I was wondering if it was possible to have an everlasting session. > Is this is possible? > > My application's user interface is rendered locally within a web browser > using seaside. > Its content is updated asynchronously by the application. > > However between some updates so much time can pass that the session expires > and if the Javascript then wants to access the page again it only says > "Error: you are forbidden to access "http://localhost:7777/MyApp"". > > I'm using "html scriptaculous update: ..." to create the code which performs > the update, > which is triggered by my own javascript asynchronously. > > -- Karsten Kusche - Dipl. Inf. - [hidden email] Georg Heeg eK - Köthen Handelsregister: Amtsgericht Dortmund A 12812 _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by Machisuji
hello, i try a little bit socket-programming. I have a question: The IPSocketAddress servicePortByName:SERVICENAMESTRING gives me the port of an service. But how do i add a new service in the list? E.g. i want to create a new service named 'boo'. How can i add this service to my service list? Because IPSocketAddress servicePortByName: 'boo' makes now a exception. Thanks. Mit freundlichen Grüßen - best regards, Peter Dziedzic -------------------------------------- Carl Zeiss Industrielle Meßtechnik GmbH/ Industrial Metrology Softwareentwicklung/Software Development P e t e r D z i e d z i c 73446 Oberkochen, Germany e-mail: [hidden email] http://www.zeiss.de/imt Carl Zeiss Industrielle Messtechnik GmbH Carl-Zeiss-Straße 22, 73447 Oberkochen Aufsichtsratsvorsitzender: Dr. Dieter Kurz Geschäftsführer: Dr. Rainer Ohnheiser, Felix Hoben, Hanspeter Mürle Sitz der Gesellschaft: 73446 Oberkochen, Deutschland Amtsgericht Ulm, HRB 501561, USt-IdNr.: DE 811 515 346 ---------------------------------------- This message is intended for a particular addressee only and may contain business or company secrets. If you have received this email in error, please contact the sender and delete the message immediately. Any use of this email, including saving, publishing, copying, replication or forwarding of the message or the contents is not permitted. _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Hi Peter,
Dziedzic, Peter wrote: > i try a little bit socket-programming. > I have a question: The IPSocketAddress servicePortByName:SERVICENAMESTRING > gives me the port of an service. > But how do i add a new service in the list? > E.g. i want to create a new service named 'boo'. > How can i add this service to my service list? > Because IPSocketAddress servicePortByName: 'boo' makes now > a exception. I guess, a service name is the equivalent of what you find listed in /etc/services on a *nix machine or C:\WINDOWS\system32\drivers\etc\services on Windows (at least Windows XP). As the comments therein state, these are registered service names with IANA, see http://www.iana.org/assignments/port-numbers. To add something there either apply something officially (see http://www.iana.org/protocols/apply/) or try to add your service name to the configuration files on all relevant machines. Regards Jan _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
hello, thanks for your answer. it works. Mit freundlichen Grüßen - best regards, Peter Dziedzic -------------------------------------- Carl Zeiss Industrielle Meßtechnik GmbH/ Industrial Metrology Softwareentwicklung/Software Development P e t e r D z i e d z i c 73446 Oberkochen, Germany tel: +49 73 64 20-84 48 fax: +49 73 64 20-48 00 e-mail: [hidden email] http://www.zeiss.de/imt Carl Zeiss Industrielle Messtechnik GmbH Carl-Zeiss-Straße 22, 73447 Oberkochen Aufsichtsratsvorsitzender: Dr. Dieter Kurz Geschäftsführer: Dr. Rainer Ohnheiser, Felix Hoben, Hanspeter Mürle Sitz der Gesellschaft: 73446 Oberkochen, Deutschland Amtsgericht Ulm, HRB 501561, USt-IdNr.: DE 811 515 346
Hi Peter, Dziedzic, Peter wrote: > i try a little bit socket-programming. > I have a question: The IPSocketAddress servicePortByName:SERVICENAMESTRING > gives me the port of an service. > But how do i add a new service in the list? > E.g. i want to create a new service named 'boo'. > How can i add this service to my service list? > Because IPSocketAddress servicePortByName: 'boo' makes now > a exception. I guess, a service name is the equivalent of what you find listed in /etc/services on a *nix machine or C:\WINDOWS\system32\drivers\etc\services on Windows (at least Windows XP). As the comments therein state, these are registered service names with IANA, see http://www.iana.org/assignments/port-numbers. To add something there either apply something officially (see http://www.iana.org/protocols/apply/) or try to add your service name to the configuration files on all relevant machines. Regards Jan ---------------------------------------- This message is intended for a particular addressee only and may contain business or company secrets. If you have received this email in error, please contact the sender and delete the message immediately. Any use of this email, including saving, publishing, copying, replication or forwarding of the message or the contents is not permitted. _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by Karsten Kusche
Am 10.12.2009 09:38, schrieb Karsten:
> Hi Machisuji, > > you can just add a periodic updater to the page that simply pings the > server. That keeps the session allive and if you close the window > eventually the session expires and is garbage collected. If you have > sessions that don't expire, they don't get cleaned up and your image grows. or - create a subclass of WASession, e.g. EverlastingSession, configure your application to use this session and implement EverlastingSession>>isActive ^ self expired not or - set sessionExpirySeconds of your session to a very high value Since only the last n continutations of a session are stored, I wouldn't expect any unusual image growth. _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Free forum by Nabble | Edit this page |