Skip to content
Advertisement

Tag: session

Laravel : Set cookie for parent domain

I’m trying to build an SSO that will be shared between different applications with the same parent domain. Say we have these domains : sso.example.com Unified login page app1.example.com Some other application that will redirect to the login page When I set SESSION_DOMAIN=.example.com in .env file of the SSO project, the cookie is indeed set in parent domain and is

Add to cart multiple tickets of single competitions in PHP Laravel

I have a website prospectcompetitions.co.uk. I want to add multiple tickets of single competitions into cart. Every single competition consist of multilple tickets. if a user select 3 tickets then add them to cart so that user can add multiple tickets of single competitions and multiple tickets of multiple competitions please have a look prospectcompetitions.co.uk Answer Basically We Used 2D

How to redirect the user to dashboard if i remove the “/dashboard” from the port server in Laravel? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 1 year ago. Improve this question My port server is my login interface. * http://127.0.0.1:8000/* That is my login part, after entering my details it will redirect me to my dashboard

solving problems in session? [closed]

I have created two pages , one is index.php and admin.php . In the first page or index.php , i have created a loggin form so that i can access the admin.php page trough the loggin or like this enter …

Why does my PHP file stop executing when I use session_start()?

I am creating a login page for a website using PHP. I added “session_start();” as seen below to start the session. Then I put the rest of the websites code below it (other php, html, etc). Whenever I use session_start, the program stops executing and shows a blank page. Also, the page displays error 500 on some browsers. I’m not

Printing a nested array on View | Codeigniter

I’m building a cart using sessions, I’m adding each pizza to an array and passing to the session. The array is as follows, I was able to display the item id, pizza name, price, and quantity But cannot figure out to display the topping names user has selected in the Toppings column.How should I do this> View The following code

Are PHP session writes atomic?

As PHP session handler was somehow flawed in the past, we developed a homemade session handler years ago. But it seems that current versions of PHP are well developed and flaws are gone, and we decided to use PHP’s default session handler (as it is much faster than our handler which uses dbms to save session data – which sometimes

Session gets destroyed after page refresh

Login.php Index.php I made a Login script which opens, if the password is correct, the Index.php site. When first opening the Index.php site via the Login script everything works fine and the session is set. But after I refresh the page the sessions gets destroyed and is not set. So how can I save the session, so it’s not getting

Advertisement