Category : session-cookies

A little bit of context: I’m implementing a payment processor in a Laravel web application. After the user submits credit card information the payment processor makes a POST request to my application to inform me about the status of the transaction. Depending on that status, I’m redirecting the user to a page where I display ..

Read more

I am working on shifting laravel 7.3 sessions to my native php file. By using the following code. try { require_once($_SERVER[‘DOCUMENT_ROOT’] . "/site/home/vendor/autoload.php"); require_once($_SERVER[‘DOCUMENT_ROOT’] . "/site/home/bootstrap/app.php"); $kernel = $app->make(‘IlluminateContractsHttpKernel’); $response = $kernel->handle($request = IlluminateHttpRequest::capture()); $base64_key = "base64:PujJyWOkF5GT0k9K3OU/hqh02v3x+7esupKXH31S1eI="; $payload = json_decode(base64_decode($app[‘config’][‘session.cookie’]), true); $iv = base64_decode($payload[‘iv’]); $key = base64_decode(substr($base64_key, 7)); $sessionId = openssl_decrypt($payload[‘value’], ‘AES-256-CBC’, $key, 0, $iv); ..

Read more

i have a issue with my code.I have user these classes in my Kernel file in laravel protected $middleware = [ // AppHttpMiddlewareTrustHosts::class, AppHttpMiddlewareTrustProxies::class, FruitcakeCorsHandleCors::class, AppHttpMiddlewareCheckForMaintenanceMode::class, IlluminateFoundationHttpMiddlewareValidatePostSize::class, AppHttpMiddlewareTrimStrings::class, IlluminateFoundationHttpMiddlewareConvertEmptyStringsToNull::class, IlluminateSessionMiddlewareStartSession::class, IlluminateViewMiddlewareShareErrorsFromSession::class, SpatieCookieConsentCookieConsentMiddleware::class, ]; And my Controller code is if($category->save()){ return redirect()->route(‘category.index’)->with(‘done’,’Category has been inserted successfully’); }else{ return back()->with(‘deny’,’Something went wrong’); } My view code is ..

Read more

I’m on Laravel 7 .env SESSION_DOMAIN= SESSION_SECURE_COOKIE=true SESSION_HTTP_ONLY=true SESSION_SAME_SITE=strict cat config/session.php <?php use IlluminateSupportStr; return [ /* |————————————————————————– | Default Session Driver |————————————————————————– | | This option controls the default session "driver" that will be used on | requests. By default, we will use the lightweight native driver but | you may specify any of ..

Read more

This is a common problem seemingly with a variety of suggestions/solutions. I’ve read many previous topics and other sources but without success at my own problem. Hosting a Laravel 6 app on Heroku. My session.php looks like: <?php return [ /* |————————————————————————– | Default Session Driver |————————————————————————– | | This option controls the default session ..

Read more