Questions tagged session-cookies

Explore the latest questions and answers asked by our top developers.

Stay logged with php session & angular

I’m trying to make a login system on angular with a PhP backend. When people login, this is the PhP script called : // here check for good request $account = // found the account thanks to PDO $accountId = $account["id"]; session_start(); $_SESSION["accountId"] = $accountId; setcookie("accountId", $accountId); Then, when I want to get informations according […]

The value of the ‘Access-Control-Allow-Origin’ header in the response must not be the wildcard ‘*’ when the request’s credentials mode is ‘include’.-

Before you downvote my question, I’ve tried all solutions from the question link below. Related Questions: CORS: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true Why does my JavaScript code receive a "No 'Access-Control-Allow-Origin' header is present on the requested resource" error, while Postman does not? … and similar posts but none have […]

By S Karki
Published
Categorized as angular, cors, express, node.js, session-cookies Tagged , , , ,

Chrome android automatic clear session(auth) cookies on close

Chrome android automatic clear session(auth) cookies on close. How can you disable this behavior? The site uses cookies for authorization and every time after closing you have to go through authorization, which is extremely inconvenient. In other chromium-based browsers, such problems are not observed. responce set this cookies: Source: Angular Questions

How can we access cookie provided from authentication server in application server?

I was reading a blog in angular (https://blog.angular-university.io/angular-jwt-authentication/)from its official website wherein for authentication a separate server is used and for application different server is used. So, in this case cookie will be issued by authentication server but will be used in application server. How is that possible? I am not able to understand the […]

JSESSIONID is dropped in browser when cross origin resource is loaded via Angular from Spring Boot

I am using Spring Security Oauth2 authentication as both client and resource server. When I load a static page Oauth2 authentication is performed successfully and from the same browser session I can access REST points (http://localhost:8080/) However when I attempt to load the same resource via angular which is loaded via a link in the […]

Angular maintain session API call via cookies

Is it possible to store a JSESSIONID in angular and use that same session id for all variables. When I make the API calls the JESSIONID is all different? Like I have a sessionid stored when user logs in and then use that same sessionid for the rest of the api calls till the session […]

Using encrypted cookies in an Angular application

I have some application level permissions retrieved from the server-side and I would like to store them in encrypted cookies on the client side. These permissions are used by Route Guard Services, to prevent access to routes where the user has no business to navigate. I found an NPM package that encrypts the cookies, but […]

By Eddie
Published
Categorized as angular, cookies, encryption, session-cookies Tagged , , ,

Migrate from struts to Angular8+Springboot – Third party SSO with cookies

I have a MVC application written in Struts2.x which I am migrating to Angular8 and Spring boot. Currently, the authentication mechanism is done using cookies. So : The user logs into the browser, the flow goes into the loginAction, starts a session and checks for any cookies. If cookies are not available, then the code […]

SPRING BOOT-ANGULAR APPLICATION, SESSION OBJECT NOT GETTING PASSED TO THE BROWSER

This is a Spring boot – angular application..I am not able to send the session object created in the backend into the browser but it is passing in Postman(Works perfect in postman).. this is the code @PostMapping(path = "/login") @CrossOrigin @ResponseBody public ResponseEntity<String> login(@RequestBody UserDto loginAccount , HttpServletRequest request) { HttpHeaders headers = new HttpHeaders(); […]

Spring boot – Angular application, session object not getting passed to the browser

This is a Spring boot – angular application. I am not able to send the session object created in the backend into the browser but it is passing in Postman(Works perfect in postman).. this is the code @PostMapping(path = "/login") @CrossOrigin @ResponseBody public ResponseEntity<String> login(@RequestBody UserDto loginAccount , HttpServletRequest request) { HttpHeaders headers = new […]

1 2 3

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq