I'd try to use "remember me" functionality, in the simplest way it looks like:
$app->login($credentials, array('remember'=>true));
28.07.2012, 13:13, "ottoBizzXL" <
otto....@gmail.com>:
> Hi All,
>
> I have the following problem with the Joomla session:
>
> for communication between a iPhone app and Joomla a webservce is created as a controller (controllername.json.php). The webservice uses the standard Joomla user login (like $app->login($credentials) and is exchanging data with the Joomla site. This all works good.
>
> But as a normal user login (like from the frontpage) the iPhone app login gets a session. This session will expire after the maximum lifetime is exceeded. Normally in a frontend page i can use things like keepalive.
> But in a iPhone app that is not possible. Because of the nature of a iPhone app (the app can be closed etc) and the user has to login once (untill the user logout manually by pressing a button in the iPone app) the session of these users should never expire.
>
> Changing the lifetime option in the backend is for all users, so this is not an option.
>
> My questions:
>
> How do i extend the session time of the iPhone users?
>
> Perhaps i have to write a plugin to overload the JSession class, but i prefer an other option if it is possible.
>
> Any suggestions will be appreciated.
>
> --
> You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
> To view this discussion on the web, visit
https://groups.google.com/d/msg/joomla-dev-general/-/gte0D4pFBPQJ.
> To post to this group, send an email to
joomla-de...@googlegroups.com.
> To unsubscribe from this group, send email to
joomla-dev-gene...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/joomla-dev-general?hl=en-GB.
--
Best regards,
Denis Ryabov