SQL Pagination
Posted on
|
In
SQL
Java Pagination
Posted on
|
In
Java
Spring-boot Notes I
Posted on
|
In
Spring
CORS Issue Cont.
Posted on
|
In
Java
CORS Issue
Posted on
|
In
Java
Angular2 Apps Script Error in Safari
Posted on
|
In
Angular
Chart.js in Angular 2
Posted on
|
In
Angular
Java Cookie
Posted on
|
In
Java
Set httpOnly and secure flags on session cookie.
For JSESSIONID, we can upgrade web servlet to version 3.0,
update web.xml
as<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
Then, in web.xml
, add <cookie-config>
as<session-config>
<cookie-config>
<http-only>true</http-only>
<secure>true</secure>
</cookie-config>
</session-config>
Angular2 Notes V
Posted on
|
In
Angular
Use IntervalObservable in rxjs
to implement interval in angular 2. Create(period)
is a static method, which creates an Observable that emits sequential numbers every specified interval of time.
import { IntervalObservable } from 'rxjs/observable/IntervalObservable'; |