Search the Community
Showing results for tags '$session'.
-
I'm trying to identify if a user has logged in through our PW login. It's using $session->login. When including /pw/index.php and checking $user, it shows only a guest account after I have logged in. My project is in a higher directory than our PW instance. Is that why it's not showing a user being...
-
- help
- authentification api
-
(and 2 more)
Tagged with:
-
Hello forum! I have a site, where I want to remember two settings defined by user: 1) Theme (light or dark) 2) Language (Finnish or English) Because user makes changes to these settings on client side, I am a bit lost with how can I save them in ProcessWire $session variable? I woul...
- 3 replies
-
- $session
- client to server
-
(and 2 more)
Tagged with:
-
Hi everybody I want to catch a variable from outside processwire into _main.php if(isset($_GET['u']) && $_GET['u'] !== ''){ $gebruikersnaam = $_GET['u']; ... ... This is working fine in a php file in a non processwire environment. In a processwire environment, I get the variable...
- 6 replies
-
- url segments
- $input
-
(and 1 more)
Tagged with:
-
Hello, I want to use the $session variable in functions, inside a template. According to the API this variable is available only in templates. But all values of the $session variable get lost, even when I use 'global $session'. is there any workaround for this problem?
-
Hello everyone, i am building a little 'shop-like' element for a clients Homepage (no direct payment) Its my first Approach working with php besides very basic php and Processwire stuff, so i am a litte lost here. I want to use KnockoutJs for getting User Input, process the Data on...
-
I'm looking at the session information in the database. The "ts" column shows my local time formatted as text. The code in the wire/core/sessions.php file shows a check against the normal PHP/Unix "time()" function, which is GMT/UTC time. Shouldn't the timestamp in the DB be GMT/UTC? And pardo...
-
Hi guys. I have very strange problem that i cant managed fo few hours. This is realy hard to understand for me. I work on website and i want it to have banners in few places. In admin i created structure: Banners > Banner Group > Banner 1, Banner2, Banner 3 etc. I want this banners to be loaded on...
-
Hi guys, I have a jquery mobile $session problem : Some background : The system itself is a mix between CodeIgniter and PW - customer login, business logic calculations are done via CI; however some static pages are displayed via PW. CI sets $_SESSIONS on login, which are then used from proce...
-
Hello, I've searched the forums and API page etc, but I've not really found a great deal of information regarding $session->hello = "Hello World!"; etc. I know what it does, but I don't know the technicalities of it. By this I mean, is it safe to temporarily store a couple of paragraphs of text in a...
-
Hi, I have created a JS coundown timer displaying on a site. Example here: A-F33 At the moment the end date is hard coded into the function as a variable endDate. The time difference is based on the current time versus the endDate. What I would like to do is when a user arrives at the page the...
- 11 replies
-
- countdown time
- $session
- (and 2 more)
-
Hey, so now my first PW site is ready to go to the production server, but something's not working. I have set up a new database, dumped my local database and imported it. I then copied all files to the production server, changed the db settings in the config file, made site/assets writable and e...
- 10 replies
-
- site transfer
- $session
-
(and 1 more)
Tagged with: