Community Support Forums — WordPress® ( Users Helping Users ) — 2011-08-20T16:21:11-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=14620 2011-08-20T16:21:11-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14620&p=32493#p32493 <![CDATA[Re: Offline access to restricted content]]>

Statistics: Posted by Cristián Lávaque — August 20th, 2011, 4:21 pm


]]>
2011-08-20T16:05:29-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14620&p=32491#p32491 <![CDATA[Re: Offline access to restricted content]]> Statistics: Posted by jesseAe — August 20th, 2011, 4:05 pm


]]>
2011-08-20T14:53:06-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14620&p=32477#p32477 <![CDATA[Re: Offline access to restricted content]]> Thanks for the heads up on this thread.

Yes, all of WordPress ( including s2Member ), works on cookie-based authentication. That is, a User logs into the site, and remains logged in until cookie authentication expires. So as long as your application can work offline, you shouldn't have a problem recognizing the User as being logged-in, because cookies are stored on the client-side browser. Just be sure they click the "Remember Me" box when they log in, so that cookies remain in existence, even after the browser session is finished.

Cookie authentication in WordPress is handled by this core framework function:
http://codex.wordpress.org/Function_Ref ... uth_cookie

For better security, you might consider a JavaScript version of this routine, or at least something that checks the overall validity of the authentication cookie set by WordPress. I'm not sure you'll ever get something that's "as secure" as a server-side validity check, but I'm sure you could come up with a workaround for an offline app that would suffice.

Statistics: Posted by Jason Caldwell — August 20th, 2011, 2:53 pm


]]>
2011-08-20T04:48:53-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14620&p=32461#p32461 <![CDATA[Re: Offline access to restricted content]]> Statistics: Posted by jesseAe — August 20th, 2011, 4:48 am


]]>
2011-08-20T02:28:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14620&p=32453#p32453 <![CDATA[Re: Offline access to restricted content]]>
I actually think that what you mention about the cookies may work, but I'm not an expert in this.

I'll email Jason, the Lead Developer, to see what he thinks. :)

Statistics: Posted by Cristián Lávaque — August 20th, 2011, 2:28 am


]]>
2011-08-20T01:46:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14620&p=32447#p32447 <![CDATA[Re: Offline access to restricted content]]>
I don't know all there is to know about wordpress authentication. If I did I would not have purchased the s2member pro plugin. However...

On this page:
http://codex.wordpress.org/WordPress_Cookies

It says this:
"If WordPress recognizes that you have valid, non-expired cookies, you go directly to the WordPress Administration interface."

So I was thinking that maybe if the cookie expiration can be changed then maybe there would be a way to get offline admin access for a set period of time. If this is ridiculous I would prefer you simply tell me this is ridiculous and not dress your ridicule in the guise of a question. Otherwise, can you help me?

Statistics: Posted by jesseAe — August 20th, 2011, 1:46 am


]]>
2011-08-19T22:25:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14620&p=32426#p32426 <![CDATA[Re: Offline access to restricted content]]> Statistics: Posted by Cristián Lávaque — August 19th, 2011, 10:25 pm


]]>
2011-08-19T16:19:02-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14620&p=32407#p32407 <![CDATA[Offline access to restricted content]]>
I would like to make the app usable offline, but obviously a user cannot login offline and so would not be able to access the restricted app page.

So my question:
Is there any way for s2member to support offline access to restricted content?

Statistics: Posted by jesseAe — August 19th, 2011, 4:19 pm


]]>