JSESSION-GETINSTANCE-001

JSession::getInstance()

JSession::getInstance()

You do not construct the session. The application owns it.

JSession::getInstance()$app->getSession()

Dies at Joomla 3 → 4J3: Works nativelyJ4: Deprecated — do not shipJ6: Removed — fatalBC plugin: partialPatch possible — review itJoomla API

What you will see

  • JSession::getInstance is deprecated

Symptoms people search

getInstance session

Replace this code

Swap JSession::getInstance() for $app->getSession().

Joomla 3

Remove or stop calling this

$session = JSession::getInstance('none', $options);

Joomla 4 / 6

Use this instead

$session = Factory::getApplication()->getSession();

How to fix it

  1. 1Delete getInstance.
  2. 2Use $app->getSession().

Also known as

JSession::getInstance

Related issues

Get in touch

Have a project in mind? Let's talk about it.

Tell us what you're building. Whether it's a new site, an online store, a mobile app, or something that needs AI under the hood, we'll get back to you within a business day.

Free consultation
No commitment, no pressure
Reply within 24 hours
Usually much faster

Prefer a direct conversation?

Request a project quote

Tell us about your project

Fill out the quick form and we'll reach out.