<p><font size=2 color=navy face=Arial>
In your case last access is 0 because you are just accessing it now :) You need your own 'start' variable if you want to track total session time, just set it to Timestamp now in #initialize and then add #minutesSinceStart that subtracts that from current time.<br> <br>-Boris (via BlackBerry)</font></p>
<p><hr size=2 width="100%" align=center tabindex=-1>
<font face=Tahoma size=2>
<b>From</b>: seaside-bounces@lists.squeakfoundation.org <seaside-bounces@lists.squeakfoundation.org> <br><b>To</b>: Seaside - general discussion <seaside@lists.squeakfoundation.org> <br><b>Sent</b>: Tue May 19 18:02:46 2009<br><b>Subject</b>: [Seaside] lastAccess, secondsSinceLastAccess <br></font></p>
Hi all,<br><br>I subclassed WASession to have my own session class, now I need to know for how long the current user has been logged in, so I found these two methods belonging to WAExpiringHandler, of which WASession is a subclass (hence, from which my session class also inherits):<br>
<ul><li>lastAccess</li><li>secondsSinceLastAccess</li></ul>But when calling<i> html text: self session lastAccess</i> I get a couple of beautiful symbols (namely: ����). Tried to send every asSomething I found but couldn&#39;t get it to print a date or a time.<br>
<br>Then I tried calling <i>html text: (self session secondsSinceLastAccess) asEverything</i> but the best output I got was a zero.<br><br>Could you please point to me the proper way to get this information from the current session? I googled for a long while, but<i> seaside session time</i> and similar queries only pointed some interesting travel suggestions to me ;)<br>
<br>Thanks a lot in advance!<br clear="all"><br>Bernat.<br><br>-- <br>O HAI I&#39;M IN UR FOOTER SIGNATURING UR MAILZ<br>