Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when session stored in redis,the session destory has a bug #12835

Closed
feiyu-xie opened this issue May 2, 2017 · 1 comment
Closed

when session stored in redis,the session destory has a bug #12835

feiyu-xie opened this issue May 2, 2017 · 1 comment
Labels
duplicate Duplicate issue. The duplicate issue is referenced in the comments

Comments

@feiyu-xie
Copy link

feiyu-xie commented May 2, 2017

when session stored in redis , delete a wrong redis key

/**
	 * {@inheritdoc}
	 */
	public function destroy(string sessionId = null) -> boolean
	{
		var id;

		if sessionId === null {
			let id = this->getId();
		} else {
			let id = sessionId;
		}

		return this->_redis->exists(id) ? this->_redis->delete(id) : true;
	}

Details

the id should be _PHCR+prefix+id

@sergeyklay
Copy link
Contributor

#12326

@sergeyklay sergeyklay added the duplicate Duplicate issue. The duplicate issue is referenced in the comments label May 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Duplicate issue. The duplicate issue is referenced in the comments
Projects
None yet
Development

No branches or pull requests

2 participants