On my 1.2 i ve got a problem of login, sometimes it's work sometimes it doesn't work
the pnUserLogIn return true
im using SVN version
André
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- rgasch created topic »Using PageUtil::addVar() to load script code« 11:48 AM
- michiel responded to »password problem« 10:01 AM
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
login problem on 1.2
-
- Rank: Developer
- Registered: May 17, 2004
- Last visit: Apr 08, 2010
- Posts: 386
-
- Rank: Developer
- Registered: May 17, 2004
- Last visit: Apr 08, 2010
- Posts: 386
is it possible it comme from a session loss ? does someone have the same issue ? did something change compare to this old way of login ? -
- Rank: Team Member
- Registered: Sep 06, 2006
- Last visit: May 09, 2010
- Posts: 2446
Nothing changed here
Sometimes there are problems with the browser cookies, or some weird cache issues, but cleaning the cookies works mostly of the times. Session loss can happen if something truncate your session_info table... more than that, seems pretty weird stuff.
Now I remember something:
The cookie has a "path" and the ID is calculated based on the base URL too.
If you're playing with subdomains that can be the problem.
--
- Mateo T. -
Mis principios... son mis fines -
- Rank: Developer
- Registered: May 17, 2004
- Last visit: Apr 08, 2010
- Posts: 386
i ve got a specific installation, but i really don't understand where does the probleme come from, i m logged in and then redirect to "index.htm"
sessionutil mod
before
Code
// (uncommend this line after 0.8.0.0 is released - ini_set('session.hash_function', (((float)phpversion() >= 5) ? 1 : 0));
ini_set('session.hash_function', 0);
after
Code
ini_set('session.hash_function', (((float) phpversion() >= 5) ? 1 : 0));
where is the session expire var ?
edit:secinactivemins & secmeddays
i look at the code where i m unconnected, sometime it's appear in a
Code
!SecurityUtil::checkPermission('Admin::', '::', ACCESS_EDIT)
the function return false
edited by: mumuri, datetimebrief -
- Rank: Developer
- Registered: May 17, 2004
- Last visit: Apr 08, 2010
- Posts: 386
Code
if( pnUserLoggedIn()){
echo "logged in";
}else{
echo" not logged in";
}
echo SessionUtil::getVar('uid');
if (!SecurityUtil::checkPermission('Admin::', '::', ACCESS_EDIT)) {
echo "error";
exit(1);
// return LogUtil::registerPermissionError();
}
i ve run this test, it's appear im unlogged at random time and my UID is not defined
give meCode
not logged inerror
i try to comment the content of the pnUserLogOut function, and the result is still the same, there seems to be a problem in the session
EDIT it came from the fact i m using MEMORY table for the session table, now it works well
edited by: mumuri, datetimebrief
- Moderated by:
- Support
