Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8674689
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:46:06+00:00 2026-06-12T19:46:06+00:00

$user = $this->Session->read(‘Auth’); produces the following array: array( ‘User’ => array( ‘id’ => ‘2’,

  • 0
$user = $this->Session->read('Auth'); 

produces the following array:

array(
    'User' => array(
        'id' => '2',
        'email' => 'info@trinoweb.com',
        'username' => 'trino',
        'created' => '2012-10-11 12:41:52',
        'modified' => '2012-10-11 12:41:52',
        'last_online' => null,
        'main_image' => null,
        'address' => null
    )
)

I want it to produce the same thing but with all the joins/relationships… like so…

array(
    'User' => array(
        'password' => '*****',
        'id' => '128',
        'email' => '12312@asdas.com',
        'username' => 'teresa',
        'created' => '2012-10-11 12:41:52',
        'modified' => '2012-10-11 12:41:52',
        'last_online' => null,
        'main_image' => null,
        'address' => null
    ),
    'Inbox' => array(),
    'Sender' => array(),
    'Upload' => array()
)

thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T19:46:07+00:00Added an answer on June 12, 2026 at 7:46 pm

    No, not unless you write it in there when the Auth key is populated. This is a session variable, not a dynamic lookup on the models.

    You will need to basically modify the login methods to do a lookup on these relationships and populate the Session data then.

    Bear in mind, that this will be STATIC data. If you change a relationship, that will not be reflected in this array. You will need to update this array when that happens, and then it’s going to get messy.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There is an array of user states stored in the session. This works: <?php
Let's consider this model class Session(models.Model): tutor = models.ForeignKey(User) start_time = models.DateTimeField() end_time =
Came across this code: <?php require_once 'HTTP/Session/Container/DB.php'; $s = new HTTP_Session_Container_DB('mysql://user:password@localhost/db'); ini_get('session.auto_start') or session_start();
I have this User Control XAML: <Window x:Class=MyProj.Dialog xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml xmlns:mc=http://schemas.openxmlformats.org/markup-compatibility/2006 xmlns:d=http://schemas.microsoft.com/expression/blend/2008 xmlns:shell=http://schemas.microsoft.com/winfx/2006/xaml/presentation/shell mc:Ignorable=d>
debug($session->read()); Array ( [Config] => Array ( [userAgent] => 85b3b055be0e89d07016e8c67e3e9d69 [time] => 1292403988 [timeout]
I have code like this: <ul> <?php foreach($persons as $key) : ?> <?php if($this->session->userdata('id_user')
THIS USER HAS ALREADY ASKED THE EXACT DUPLICATE A FEW MINUTES AGO sql and
When using this user.meta.logins.$inc(); I get this error in the console: Mongoose MongooseNumber#$inc /
If user insert this data 16 HOUSEHOLD STAND FAN AA070021A the output should be
I did read manuals about access to current user via everyauth. It's say, that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.