What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2021-11-05 11:45:15
Angular/RxJs When should I unsubscribe from `Subscription`
// You don't need to have bunch of subscriptions and unsubscribe manually. // Use Subject and takeUntil combo to handle subscriptions like a boss: import { Subject } from "rxjs" import { takeUntil } from "rxjs/operators" export clas... Add solution -
PHP 2021-11-04 06:00:12
php session auto expire
//Ending a php session after 30 minutes of inactivity $minutesBeforeSessionExpire=30; if (isset($_SESSION['LAST_ACTIVITY']) && (time() - $_SESSION['LAST_ACTIVITY'] > ($minutesBeforeSessionExpire*60))) { session_unset(); // unset $_SE... Add solution -
PHP 2021-11-01 14:23:12
php expire a session
//Ending a php session after 30 minutes of inactivity $minutesBeforeSessionExpire=30; if (isset($_SESSION['LAST_ACTIVITY']) && (time() - $_SESSION['LAST_ACTIVITY'] > ($minutesBeforeSessionExpire*60))) { session_unset(); // unset $_SE... Add solution -
PHP 2021-10-28 12:06:05
php expire session
//Ending a php session after 30 minutes of inactivity $minutesBeforeSessionExpire=30; if (isset($_SESSION['LAST_ACTIVITY']) && (time() - $_SESSION['LAST_ACTIVITY'] > ($minutesBeforeSessionExpire*60))) { session_unset(); // unset $_SE... Add solution -
PHP 2021-10-27 05:57:07
como destruir uma variavel de sessão
// criando sessões de login session_start(); $email = $_SESSION['email']; $senha = $_SESSION['senha']; // criando sessões do jogo $senha = $_SESSION['palavra']; $senha = $_SESSION['letra']; // removendo todas as sessões session_star... Add solution -
Python 2021-10-27 04:54:09
python message box yes no script
import tkinter as tk from tkinter import messagebox root= tk.Tk() canvas1 = tk.Canvas(root, width = 300, height = 300) canvas1.pack() def ExitApplication(): MsgBox = tk.messagebox.askquestion ('Exit Application','Are you sure you want to exit the a... Add solution -
Python 2021-10-24 15:41:09
auto fill in entry in tkinter
from Tkinter import * import re lista = ['a', 'actions', 'additional', 'also', 'an', 'and', 'angle', 'are', 'as', 'be', 'bind', 'bracket', 'brackets', 'button', 'can', 'cases', 'configure', 'course', 'detail', 'enter', 'event', 'events', 'example', 'fiel... Add solution -
Python 2021-10-16 15:01:08
create form with tkinter
#import modules from tkinter import * import os # Designing window for registration def register(): global register_screen register_screen = Toplevel(main_screen) register_screen.title("Register") register_screen.geometry(&quo... Add solution