# |
Jan 8th 2019, 14:48 |
neon1024 |
You’d kinda have to write the current session id to the db user record, so when they logged into the other site it could find the existing session. Although Cake might get upset, as you’d have to hook the login to prevent a new session being created. Plus you’d need to think about one site destroying the session, how it would effect the other |
# |
Jan 8th 2019, 14:47 |
neon1024 |
No idea if that would work, but I don’t see why. It’s just hard to know which session to re-open on the other site |
# |
Jan 8th 2019, 14:47 |
neon1024 |
As if you modified the session handler, or wrote your own you could save the sessions to a spot on the filesystem that both sites had access to |
# |
Jan 8th 2019, 14:46 |
neon1024 |
https://book.cakephp.org/3.0/en/development/sessions.html#built-in-session-handlers-configuration |
# |
Jan 8th 2019, 14:46 |
neon1024 |
> cake - Saves sessions as files inside tmp/sessions. This is a good option when on hosts that don’t allow you to write outside your own home dir. |
# |
Jan 8th 2019, 14:46 |
ricksaccous |
i just know it's very do-able |
# |
Jan 8th 2019, 14:46 |
neon1024 |
I think it’s file |
# |
Jan 8th 2019, 14:46 |
ricksaccous |
not sure the best way actually |
# |
Jan 8th 2019, 14:46 |
ricksaccous |
hmph |
# |
Jan 8th 2019, 14:46 |
ricksaccous |
just feed that raw SQL statement to querybuilder |
# |
Jan 8th 2019, 14:44 |
spriz |
what’s the best way to make Cake send `USE INDEX(indexName` with query builder? :slightly_smiling_face: |
# |
Jan 8th 2019, 14:38 |
david |
you mean using "cake" instead of "php" in the session setup? |
# |
Jan 8th 2019, 14:30 |
neon1024 |
You can store your sessions on the filesystem |
# |
Jan 8th 2019, 14:23 |
david |
what do you mean? |
# |
Jan 8th 2019, 14:22 |
neon1024 |
Or look into OAuth |
# |
Jan 8th 2019, 14:22 |
neon1024 |
I’d step back in this situation and think about if it’s the right solution |
# |
Jan 8th 2019, 14:22 |
neon1024 |
Although how you load a specific session for a user I’m not sure |
# |
Jan 8th 2019, 14:22 |
neon1024 |
I’d probably try file system sessions personally |
# |
Jan 8th 2019, 14:21 |
neon1024 |
You’ll also trigger all the XSS security |
# |
Jan 8th 2019, 14:17 |
david |
I am trying to share sessions between different domains in the same server machine. Each domain contains one cakephp application. One domain is a "single sign on" app. I want to share sessions between those different apps, but, nothing doesn't seem to work. Two different apps in the same domain work and share sessions, but the third app, in other domain, is unable to read the session |
# |
Jan 8th 2019, 14:16 |
neon1024 |
In other projects we just started over from fresh |
# |
Jan 8th 2019, 14:16 |
neon1024 |
It’s always worth weighing up refactoring against a rewrite |
# |
Jan 8th 2019, 14:14 |
yannik.tschan |
@neon1024 ok thanks, so we will need a lot of time ,:) |
# |
Jan 8th 2019, 14:12 |
neon1024 |
It all depends how much ORM code you have, as that’s the main part which needs to be rewritten |
# |
Jan 8th 2019, 14:12 |
neon1024 |
@yannik.tschan Took me about 2 months to upgrade a large CMS and web service |
# |
Jan 8th 2019, 14:11 |
asdfgh |
ok |
# |
Jan 8th 2019, 14:07 |
yannik.tschan |
If you have ever upgraded from 2.x to 3.x - how long did you need for a small/large website to fix all changes and issues? |
# |
Jan 8th 2019, 13:36 |
dereuromark |
see last release |
# |
Jan 8th 2019, 13:36 |
dereuromark |
asdefg: both work. using my ide helper it is now super easy to use string option |
# |
Jan 8th 2019, 13:30 |
mocelle |
@dereuromark done. |
# |
Jan 8th 2019, 13:20 |
asdfgh |
or better, both works but what are the differences? |
# |
Jan 8th 2019, 13:18 |
asdfgh |
what is the "official" way? :D |
# |
Jan 8th 2019, 13:18 |
asdfgh |
i am a bit confused about loading plugins in 3.7, i have seend different methods, this: $this->addPlugin(FrontendPlugin::class); or $this->addPlugin('Frontend') (the frontend plugin is just a custom plugin) |
# |
Jan 8th 2019, 13:17 |
asdfgh |
hello |
# |
Jan 8th 2019, 12:18 |
mocelle |
On windows |
# |
Jan 8th 2019, 12:18 |
mocelle |
I changed Id to id |
# |
Jan 8th 2019, 12:10 |
dereuromark |
with valid constraint on db cake creates them with 1+ as expected |
# |
Jan 8th 2019, 12:09 |
dereuromark |
did you manually insert that one? |
# |
Jan 8th 2019, 12:09 |
mocelle |
I have table category with autoincrement Starts with 1. but in view started select with 0. Andy ideea? |
# |
Jan 8th 2019, 10:52 |
dereuromark |
@challgren I opened a bugfix branch with some fixes on the ide helper |
# |
Jan 8th 2019, 10:50 |
neon1024 |
I believe there are a few change sets for core CakePHP in there |