Welcome Guest, Not a member yet? Register   Sign In
how to keep alive a connection using DSNs
#1

[eluser]Unknown[/eluser]
hi guys ,
depends on my needs i use two database for my CMS , one is for keeping license and user accounts and the other is for storing product,customer,brands and etc that created for each company i add to CMS .

so for every company i add to CMD i create a DSN connection string and store in to primary database and when some user from the company login to system load DSN and connect to database .

but i want a way to keep connection alive during the whole proccess and after user logout from system close the connection .

i dont use connection array in database config because i have 3000 company in CMS so figure it out how messy it'll be in config file . besides that the company add to CMS automatically so i wont be able to edit config file for every company !


Best Regards




Theme © iAndrew 2016 - Forum software by © MyBB