MacBook Pro restores last user session after shutdown because of low battery

I never noticed that before as I had only account on my Mac but since I created one for my son, when I have a session opened and close the lead and leave the Mac until it shuts down because of low battery, if my son glugs it and starts it, when he arrives on the login screen and selects his user, it connects him to my last used session. I can’t tell why it does that and how to prevent it. We have two different accounts and passwords of course. So it looks like it restores the last session that was runnign before the power loss. Any idea? I have some security concerns on this…

Como almacenar array en session Laravel y luego recuperarlos

Estoy intentado almacenar diferentes arrays en diferentes sessiones para luego poder recuperarlos, mi pregunta es si se puede hacer y si se podria guardar en una misma session todo. Esto es lo que he intentado.

Esta es mi llamada donde tfactura tcantidad y tprecio son arrays

$  .ajax({             type: "GET",             url: "almacenar",             data: {nombre: tfactura, cantidad: tcantidad, precio: tprecio}             dataType: 'json' }); 

Y luego en mi controlador tengo estas funciones.

public function getArrays(){     $  nombre = $  request->session()->get('nombre');     $  cantidad = $  request->session()->get('cantidad');     $  precio = $  request->session()->get('precio');      return response()->json(['nombre' => $  nombre], ['cantidad'=> $  cantidad], ['precio' => $  precio]); } public function almacenar(request $  request){      $  nombre = $  request->nombre;     $  cantidad = $  request->cantidad;     $  precio = $  request->precio;     $  request->session()->put('nombre', $  cantidad);     $  request->session()->put('cantidad', $  cantidad);     $  request->session()->put('precio', $  cantidad); } 

cannot access to my session

I changed the name of the /home/mary folder to /home/alex using the following command: mv /home/mary /home/alex I restart my pc, I enter my password it loads and redisplays the same page (enter the password) I can not access my session, I think I made a serious mistake when I changed the name of the folder, is there a way to solve this problem I have very important data on my pc

Ubuntu 18.04.02, default (Gnome) spin, live session: am I right in thinking one can’t change theme, fonts?

I’m trying out the default (Gnome) spin of Ubuntu and I’m liking it a lot so far, except that it seems I can’t change the theme or the fonts. Now, Gnome lockdown hasn’t gone so far that I will not be able to change those things if I actually install Ubuntu – right?

How to access session variables in Twig template?

In a custom module I specified in the hook_preprocess_page function the following session variable:

if (isset($  blockNameState) && $  blockNameState == 'open') {    $  tempstore->set($  blockNameState, 'close'); } else {    $  tempstore->set($  blockNameState, 'open'); } 

Let’s assume the above code ran with $ blockNameState = 'block1_state' and there is key/value pair ‘block1_state/open’ in the $ tempstore.

How do I access the key/value pair in a Twig template?

Can’t run the following PHP command in Twig:

$  blockNameState = $  tempstore->get($  blockNameState); 

RESTful API with session tokens.. ehh?

After looking at a lot of session/state debates with regard to REST and finding nothing concrete, I’m just going to cut to the chase and ask myself.

Developing a RESTful API as a backend for a mobile app, I (think I) want to keep track of all users (even unregistered ones) with guest sessions. This allows me to customise content and do statistics on my users.

Implementation-wise I would have my app identify itself, as if to an /authenticate end-point, just without e-mail/password, more like UUID. But this effectively makes my whole API expect a “session token” with each request.

Is this a bad approach, or would you do the same?

Plasma (i3) session fails to start

As per the instructions at https://userbase.kde.org/Tutorials/Using_Other_Window_Managers_with_Plasma, I am trying to start use Plasma with i3. However, whenever I log into the session, it jumps back out to sddm after a second or two.

The system log is quoted below. I don’t have enough experience to know how heinous the Cannot create children for a parent... are.

I’ve tried starting i3 with shmlog but as the session jumps straight out, I don’t know how to get it to dump the log on exit.

Btw the i3 sessions run fine by themselves. So I’m pretty sure it’s not i3 itself that’s the problem.

Any help much appreciated. And more than happy to share more information.

Some versions that might be useful: Ubuntu 18.04 LTS Plasmashell 5.12.7 i3 4.14.1

The system log

04/06/2019 15:50    sddm-greeter    QObject: Cannot create children for a parent that is in a different thread. (Parent is SDDM::GreeterApp(0x7ffce519fb60), parent's thread is QThread(0x55b9bc70afd0), current thread is QThread(0x55b9bca8be10) 04/06/2019 15:50    sddm-greeter    QObject: Cannot create children for a parent that is in a different thread. (Parent is SDDM::GreeterApp(0x7ffce519fb60), parent's thread is QThread(0x55b9bc70afd0), current thread is QThread(0x55b9bca8be10) 04/06/2019 15:50    sddm-greeter    QObject: Cannot create children for a parent that is in a different thread. (Parent is SDDM::GreeterApp(0x7ffce519fb60), parent's thread is QThread(0x55b9bc70afd0), current thread is QThread(0x55b9bca8be10) 04/06/2019 15:50    sddm-greeter    QObject: Cannot create children for a parent that is in a different thread. (Parent is SDDM::GreeterApp(0x7ffce519fb60), parent's thread is QThread(0x55b9bc70afd0), current thread is QThread(0x55b9bca8be10) 04/06/2019 15:50    sddm-greeter    QObject::installEventFilter(): Cannot filter events for objects in a different thread. 04/06/2019 15:50    sddm-greeter    QObject: Cannot create children for a parent that is in a different thread. (Parent is SDDM::GreeterApp(0x7ffce519fb60), parent's thread is QThread(0x55b9bc70afd0), current thread is QThread(0x55b9bca8be10) 04/06/2019 15:50    systemd Started D-Bus User Message Bus. 04/06/2019 15:50    dbus-daemon [session uid=128 pid=21664] AppArmor D-Bus mediation is enabled 04/06/2019 15:50    sddm-greeter    QObject: Cannot create children for a parent that is in a different thread. (Parent is SDDM::GreeterApp(0x7ffce519fb60), parent's thread is QThread(0x55b9bc70afd0), current thread is QThread(0x55b9bca8be10) 04/06/2019 15:50    sddm-greeter    QObject::installEventFilter(): Cannot filter events for objects in a different thread. 04/06/2019 15:50    sddm-greeter    Cannot watch QRC-like path ":/icons/hicolor/index.theme" 04/06/2019 15:50    sddm-greeter    Adding view for "eDP-1" QRect(0,0 1920x1080) 04/06/2019 15:50    sddm-greeter    Loading file:///usr/share/sddm/themes/breeze/Main.qml... 04/06/2019 15:50    sddm-greeter    Adding view for "DP-1-1" QRect(1920,0 1920x1080) 04/06/2019 15:50    sddm-greeter    Loading file:///usr/share/sddm/themes/breeze/Main.qml... 04/06/2019 15:50    sddm-greeter    Adding view for "DP-1-2" QRect(3840,0 1920x1080) 04/06/2019 15:50    sddm-greeter    Message received from daemon: Capabilities 04/06/2019 15:50    sddm-greeter    Message received from daemon: HostName 04/06/2019 15:50    bluetoothd  Endpoint unregistered: sender=:1.489 path=/MediaEndpoint/A2DPSource 04/06/2019 15:50    bluetoothd  Endpoint unregistered: sender=:1.489 path=/MediaEndpoint/A2DPSink 

My .desktop file is

[Desktop Entry] Type=XSession Exec=env KDEWM=/usr/bin/i3 DesktopNames=KDE Name=Plasma (i3) Comment=Plasma by KDE w/i3 X-KDE-PluginInfo-Version=5.12.7