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

Option to set own session handler #154

Closed
kukulich opened this issue Mar 24, 2016 · 8 comments
Closed

Option to set own session handler #154

kukulich opened this issue Mar 24, 2016 · 8 comments

Comments

@kukulich
Copy link
Contributor

Tracy doesn't currently work if project runs on more than one server because of this commit: e1e204c

I suggest to add method setSession() so it would be possible to set own session handler with shared storage.

@dg
Copy link
Member

dg commented Mar 24, 2016

What means doesn't work?

@kukulich
Copy link
Contributor Author

Page is generated by one server but request for tracy content is server by another server (because of proxy). However there's no tracy data on the second server because session storage is not shared among servers.

@dg dg closed this as completed in 551734e Mar 24, 2016
@kukulich
Copy link
Contributor Author

I just tested it and it looks it still does't work.

@dg
Copy link
Member

dg commented Mar 24, 2016

Your PHP session storage is shared among servers? Via shared directory or how?

@dg dg reopened this Mar 24, 2016
@Vrtak-CZ
Copy link
Contributor

@dg via memcache

@dg dg closed this as completed in 05197ec May 17, 2016
@kukulich
Copy link
Contributor Author

Thanks, it works better now. However there may still be a problem. It works perfectly on one server but ajax requests don't work on our production with session shared via memcached. I'll try to investigate if it's Tracy problem or problem with our environment.

There's also a little BC break. In previous version Tracy can start session, now Tracy requires already started session.

@dg
Copy link
Member

dg commented May 17, 2016

The fact that Tracy started session annoyed some people, so I created Tracy's own independent session storage. But this storage was not working on your shared servers, so I removed it. As a result now users must start session manually to see AJAX requests and redirects.

Session can be started

  1. before Tracy\Debugger::enable()
  2. after Tracy\Debugger::enable(), but you must call Tracy\Debugger::dispatch() after that (TracyExtension does it automatically)

@kukulich
Copy link
Contributor Author

Thanks a lot for the explanation! That will help me to find the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants