There seems to be an incompatibilty with Drupad (iPhone APP) and the drupad_module.
If active the module does not allow the APP to access most of its Drupad Admin features.

Comments

nickl’s picture

Project: Remember me » Drupad
Version: 7.x-1.0 » 7.x-1.8

I had a look through the drupad module for the usual suspects but cannot seem to notice anywhere where we have any conflicts.

Maybe the drupad project can shed some light.

Some background to save time analyzing remember_me, specifically the 7.x release module in question.
Remember_me is a simple implementation of standard drupal hooks that aims to leave a small footprint and make as little a change possible to normal drupal operations.

In short: On default settings when the remember me checkbox is set normal drupal long active sessions apply.
If the checkbox is not checked the session cookie lifetime is reset to 0 which will cause the session to be discarded when the browser is closed.

How we go about doing this:

  • hook_form_alter includes the remember_me checkbox on all login forms and fixes tab order.
  • hook_form_login calls user_save and edits user property remember_me which will not conflict with anyone and will not be persisted by drupal either.
  • hook_user_presave does 3 things
    • checks for the remember_me property on user and removes it if it exisist
    • initializes user data collection only if it doesn't already exist so no kittens are harmed
    • only stores the remember_me data property if remember_me is checked which drupal will persist in user data field
  • hook_init weighted to -99 in the module order
    • checks if user is logged in and does nothing for anonymous
    • changes the session.cookie_lifetime value to 0 "forget_me" or configured session lifetime "remember_me".
    • stop and start the session without saving for php's sake to get a new session id but this does not affect drupal session management at all

    The module configuration is only concerned with the usage and display of the remember_me checkbox as well as allowing administrator to configure the session lifetime and provides status information about the current user's session.

    Please see if any of this might impact you and feel free to assign it back to us if you have suggestions where we should make changes. I will keep an eye on this issue and provide assistance if any questions arise.

jchatard’s picture

Hi, I'll check this as soon as possible.

Best,
Jérémy

jchatard’s picture

Status: Active » Closed (cannot reproduce)

Hi,

Just made a test with Remember Me 7.x-1.0 with:

  • Manage session lifetime set to On,
  • Manage session lifetime set to Off.

In both situations, I can still fully access all features of the Drupad iOS app.

Can you please update this issue with steps on how to reproduce this behavior.

Marking as can't reproduce for now.

Thanks,
Jérémy

ceberlin’s picture

Title: Incompatible with Drupad » "remember me" module incompatible with Drupad
Status: Closed (cannot reproduce) » Active

As soon as I activate the module, I can log in but see only "comments", "content" and "browse site" as options in the APP.

Remember me Settings:
---
Lifetime 1 Week
Remember me field Yes
Remember me field visible Yes

Recent Log entries:
http://xxxxxxxxurl.de/cmd/de/drupad/check-config/1.4?login=Basic%20YWRta...
Notice: Undefined property: stdClass::$timestamp in _drupal_session_write() (line 175 of /xxxxxxpath/cmd/includes/session.inc).

http:///xxxxxxxxurl.de/cmd/de/drupad/check-config/1.4?login=Basic%20YWRtaW4yOmFzdTI5NV80Rg%3D%3D
Deprecated function: Function split() is deprecated in drupad_parse_header() (line 173 of /xxxxxxpath/cmd/sites/all/modules/drupad/drupad.module).

I can provide you with crash logs from the phone or a temp. access to my development site, if necessary.

I am using PHP 5.3 with FastCGI, my provider has tight security settings and drupal is in a subfolder /cmd/ right now.
Maybe this plays a role why not everyone else has the same issues.

jchatard’s picture

Status: Active » Closed (fixed)

Ok, finally reproduced and fixed in 7.x-1.10.

ceberlin’s picture

Problem is gone!

Thank you for your time and effort.