Closed (fixed)
Project:
Token authentication
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Jul 2012 at 11:16 UTC
Updated:
7 Aug 2012 at 21:51 UTC
Like the module, but uncertain about this error:
Warning: session_destroy() [function.session-destroy]: Trying to destroy uninitialized session in tokenauth_exit() (line 138 of /home/xxxxxxx/public_html/sites/all/modules/tokenauth/tokenauth.module).
I see it in dblog after each successful page load, with a test user.
Token is set to apply to * i.e. all pages.
I am on D7.14, PHP 5.2.6.
Comments
Comment #1
Grayside commentedOn account of the fact that Tokenauth does not generate a session, session_destroy() can safely be removed.
Comment #2
andrewbenkard commentedMeaning, a) this behavior is by design and thus harmless; or b) I should do something myself to safely remove session_destroy() ?
If it is (a), then can the module be adjusted to not throw said error into the log?
Comment #3
Grayside commented1. This is harmless.
2. I need to delete that line from the module. Until I do, you may feel free to do so in your downloaded code.
Comment #4
Grayside commentedhttp://drupalcode.org/project/tokenauth.git/commit/55daf82
Comment #5
andrewbenkard commentedThanks Grayside.