Yes I agree with security part so that's why I going through all the hassle above i.e. I am trying to migrate my non-CI website to CI. I need access to same session data across both sites until I develop the CI site. It will be a slow process but once I have migrated all the functionality then I'll switch off the non-CI site. I'll take a look at your code too. Thank you again for your input Brian.