Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Unique instance of service
Post: RE: Unique instance of service

Thanks MGatner, session isn't the best solution because the goal is to have a unique instance of my service for all my clients. The service's goal is to connect to a back-office. The connection is ...
3,784 Views
8 Replies
05-02-2021, 11:22 PM
FlorianL
    Thread: Store app global variable
Post: RE: Store app global variable

php_rocs Wrote: (04-26-2021, 07:11 AM) -- @FlorianL, Yes, you could use session variables (https://codeigniter.com/user_guide/libraries/sessions.html?highlight=global%20variable#what-is-session-da...
2,753 Views
6 Replies
04-26-2021, 07:16 AM
FlorianL
    Thread: Session destroyed after post from different ip
Post: RE: Session destroyed after post from different ip

On localhost ? If you change the sessionCookieName on config/App for one of your domain the problem persist ?
3,666 Views
9 Replies
04-26-2021, 06:35 AM
FlorianL
    Thread: Store app global variable
Post: Store app global variable

Hello, Is there a solution to store a global dynamic variable for all my app without database ? For exemple : a token for API. It's generate just one time by the app, and it can be use by all co...
2,753 Views
6 Replies
04-26-2021, 06:30 AM
FlorianL
    Thread: Unique instance of service
Post: RE: Unique instance of service

craig Wrote: (04-22-2021, 02:13 AM) -- If the controllers are called on separate requests, that is never going to work how you want it to. '$this->idRandom =random_int(0, 10000);' is called for ever...
3,784 Views
8 Replies
04-25-2021, 11:05 PM
FlorianL
    Thread: Unique instance of service
Post: RE: Unique instance of service

paliz Wrote: (04-21-2021, 10:22 AM) -- random is rando what do you expect ? !!!!!!  can be same result -- I want to have the same result into the 2 controllers : On the first call of a controller ...
3,784 Views
8 Replies
04-21-2021, 10:36 AM
FlorianL
    Thread: Unique instance of service
Post: Unique instance of service

Hey, I want to make a single instance of a service to store class attributes between Controllers Exemple : In /ThirdParty i create class MyService PHP Code: --
3,784 Views
8 Replies
04-21-2021, 05:37 AM
FlorianL

Theme © iAndrew 2016 - Forum software by © MyBB